/*
 * pages.css — Inner-page design system for The Spec'd
 * Covers: single post, archives, search, 404, author, static pages.
 * All CSS tokens inherited from spec.css — no redefinition.
 *
 * Prefix: sp- (spec pages)
 * Version: 1.6.4
 */

/* ─────────────────────────────────────────────────────────────────────────
   0. READING PROGRESS BAR
───────────────────────────────────────────────────────────────────────── */

.sp-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--acc, #DFFF00);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   1. SHARED INNER-PAGE WRAPPER
───────────────────────────────────────────────────────────────────────── */

.sp-page {
  min-height: 100vh;
  background: #08080a;
  color: rgba(255, 255, 255, 0.92);
  padding-top: 72px; /* clear the fixed nav */
}

.sp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.sp-container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.sp-container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ─────────────────────────────────────────────────────────────────────────
   2. BREADCRUMB / BACK LINK
───────────────────────────────────────────────────────────────────────── */

.sp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  padding: 24px 0 0;
  transition: color 0.2s;
}

.sp-back:hover {
  color: var(--acc, #DFFF00);
}

.sp-back svg {
  transform: rotate(180deg);
}

/* ─────────────────────────────────────────────────────────────────────────
   3. CATEGORY / BEAT TAG
───────────────────────────────────────────────────────────────────────── */

.sp-beat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc, #DFFF00);
  text-decoration: none;
}

.sp-beat-tag::before {
  content: "▸";
  font-size: 9px;
}

.sp-beat-tag:hover {
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────────────────
   4. SINGLE POST — HERO AREA
───────────────────────────────────────────────────────────────────────── */

.sp-article-hero {
  padding: 40px 0 0;
}

.sp-article-header {
  padding: clamp(24px, 4vw, 56px) 0 clamp(24px, 3vw, 40px);
}

.sp-article-lead-visual {
  margin: clamp(22px, 4vw, 54px) 0 clamp(20px, 3vw, 36px);
}

.sp-article-lead-visual + .sp-article-header {
  padding-top: 0;
}

.sp-article-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(30px, 4.5vw + 8px, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 12px 0 20px;
}

.sp-article-dek {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: clamp(16px, 0.8vw + 14px, 21px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0 0 28px;
}

/* Byline row */
.sp-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #1d1e22;
}

.sp-byline-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d1e22 0%, #24252a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--body, "Google Sans", sans-serif);
  flex-shrink: 0;
}

.sp-byline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-byline-author {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.sp-byline-author:hover {
  color: var(--acc, #DFFF00);
}

.sp-byline-meta {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-byline-meta-dot {
  color: rgba(255, 255, 255, 0.2);
}

.sp-byline-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

/* Share row in byline */
.sp-byline-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.sp-share-btn:hover {
  background: rgba(223, 255, 0, 0.15);
  border-color: rgba(223, 255, 0, 0.4);
  color: var(--acc, #DFFF00);
}

.sp-share-btn--copied {
  background: rgba(223, 255, 0, 0.15);
  border-color: rgba(223, 255, 0, 0.4);
  color: #DFFF00;
}

/* Hero image */
.sp-article-img-wrap {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #101014;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .sp-article-img-wrap {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
  }
}

.sp-article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-article-img-caption {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  font-style: italic;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

/* ─────────────────────────────────────────────────────────────────────────
   5. SINGLE POST — BODY LAYOUT (sidebar + content)
───────────────────────────────────────────────────────────────────────── */

.sp-article-body {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 40px;
  padding: 48px 0 80px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .sp-article-body {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Left sidebar — sticky share + actions */
.sp-article-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .sp-article-sidebar {
    display: none;
  }
}

.sp-sidebar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  text-decoration: none;
}

.sp-sidebar-btn:hover {
  color: var(--acc, #DFFF00);
}

.sp-sidebar-btn .sp-sidebar-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.sp-sidebar-btn:hover .sp-sidebar-icon {
  background: rgba(223, 255, 0, 0.12);
  border-color: rgba(223, 255, 0, 0.35);
}

.sp-sidebar-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
}

/* ─────────────────────────────────────────────────────────────────────────
   6. SINGLE POST — ARTICLE CONTENT TYPOGRAPHY
───────────────────────────────────────────────────────────────────────── */

.sp-content {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: clamp(16px, 0.5vw + 15px, 19px);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
}

.sp-content p {
  margin: 0 0 1.5em;
}

.sp-content h2 {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(22px, 2.2vw + 14px, 36px);
  line-height: 1.15;
  color: #ffffff;
  margin: 2.4em 0 0.6em;
  letter-spacing: -0.015em;
}

.sp-content h3 {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(18px, 1.5vw + 13px, 26px);
  line-height: 1.2;
  color: #ffffff;
  margin: 2em 0 0.5em;
}

.sp-content h4 {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: clamp(15px, 0.5vw + 14px, 18px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 1.8em 0 0.4em;
  letter-spacing: 0.01em;
}

.sp-content a {
  color: var(--acc, #DFFF00);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}

.sp-content a:hover {
  opacity: 0.8;
}

.sp-content strong, .sp-content b {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.sp-content em, .sp-content i {
  color: rgba(255, 255, 255, 0.75);
}

.sp-content ul, .sp-content ol {
  margin: 0 0 1.5em 1.2em;
  padding: 0;
}

.sp-content li {
  margin-bottom: 0.5em;
  padding-left: 6px;
}

.sp-content ul li::marker {
  color: var(--acc, #DFFF00);
}

.sp-content ol li::marker {
  color: var(--acc, #DFFF00);
  font-weight: 700;
}

.sp-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 3px solid var(--acc, #DFFF00);
  background: rgba(223, 255, 0, 0.04);
  border-radius: 0 8px 8px 0;
}

.sp-content blockquote p {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(18px, 1.5vw + 14px, 24px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-style: normal;
}

.sp-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 12px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-content figure {
  margin: 2em 0;
}

.sp-content figure img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.sp-content figcaption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  font-style: italic;
}

.sp-content pre, .sp-content code {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.88em;
}

.sp-content code {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  color: #DFFF00;
}

.sp-content pre {
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 2em 0;
  line-height: 1.6;
}

.sp-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.8);
}

.sp-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2.5em 0;
}

.sp-content img {
  max-width: 100%;
  border-radius: 8px;
}

/* Pull quote — special callout class */
.sp-pull-quote {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(22px, 2.5vw + 14px, 36px);
  line-height: 1.2;
  color: #ffffff;
  border-top: 2px solid var(--acc, #DFFF00);
  border-bottom: 2px solid var(--acc, #DFFF00);
  padding: 24px 0;
  margin: 2.5em 0;
  text-align: center;
}

/* Key stats box */
.sp-stat-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin: 2em 0;
}

.sp-stat-item {
  background: #101014;
  padding: 20px 16px;
  text-align: center;
}

.sp-stat-num {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(24px, 3vw, 40px);
  color: var(--acc, #DFFF00);
  display: block;
}

.sp-stat-label {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────
   7. SINGLE POST — ARTICLE FOOTER (tags, author card, related)
───────────────────────────────────────────────────────────────────────── */

.sp-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 760px;
  margin: 0 auto;
}

.sp-tag-pill {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 5px 10px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.sp-tag-pill:hover {
  color: var(--acc, #DFFF00);
  border-color: rgba(223, 255, 0, 0.35);
  background: rgba(223, 255, 0, 0.06);
}

/* Author card */
.sp-author-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .sp-author-card {
    flex-direction: column;
  }
}

.sp-author-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1d1e22;
}

.sp-author-card-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d1e22 0%, #24252a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 22px;
  font-weight: 700;
  font-family: var(--display, "PolySans Bulky", sans-serif);
  flex-shrink: 0;
}

.sp-author-card-body {
  flex: 1;
}

.sp-author-card-kick {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc, #DFFF00);
  margin-bottom: 4px;
}

.sp-author-card-name {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.sp-author-card-name:hover {
  color: var(--acc, #DFFF00);
}

.sp-author-card-bio {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 10px;
}

.sp-author-card-link {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc, #DFFF00);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}

.sp-author-card-link:hover {
  opacity: 0.75;
}

/* ─────────────────────────────────────────────────────────────────────────
   8. RELATED POSTS
───────────────────────────────────────────────────────────────────────── */

.sp-related {
  padding: 56px 0 80px;
}

.sp-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.sp-section-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(18px, 2vw + 12px, 28px);
  color: #ffffff;
  letter-spacing: -0.01em;
}

.sp-section-title-acc {
  color: var(--acc, #DFFF00);
}

.sp-section-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .sp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sp-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   9. SHARED CARD COMPONENT
───────────────────────────────────────────────────────────────────────── */

.sp-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.sp-card-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background: #101014;
  position: relative;
}

.sp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sp-card:hover .sp-card-img img {
  transform: scale(1.04);
}

.sp-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #14141a 0%, #1d1e22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-card-tag {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc, #DFFF00);
}

.sp-card-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(15px, 1.2vw + 11px, 19px);
  line-height: 1.2;
  color: #ffffff;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.sp-card:hover .sp-card-title {
  color: rgba(255, 255, 255, 0.75);
}

.sp-card-dek {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-card-meta {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.sp-card-meta-dot {
  color: rgba(255, 255, 255, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────
   10. ARCHIVE / CATEGORY / TAG PAGES
───────────────────────────────────────────────────────────────────────── */

.sp-archive {
  padding: 0 0 100px;
}

/* Archive header */
.sp-archive-header {
  padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.sp-archive-kick {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--acc, #DFFF00);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-archive-kick::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--acc, #DFFF00);
  opacity: 0.5;
}

.sp-archive-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(36px, 5vw + 12px, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 16px;
}

.sp-archive-title span {
  color: var(--acc, #DFFF00);
}

.sp-archive-desc {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: clamp(15px, 0.6vw + 14px, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
  max-width: 560px;
}

.sp-archive-count {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 16px;
}

/* Featured post at top of archive */
.sp-archive-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

@media (max-width: 768px) {
  .sp-archive-feat {
    grid-template-columns: 1fr;
  }
}

.sp-archive-feat-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: #101014;
}

.sp-archive-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sp-archive-feat:hover .sp-archive-feat-img img {
  transform: scale(1.03);
}

.sp-archive-feat-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-archive-feat-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(22px, 2.5vw + 12px, 38px);
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}

.sp-archive-feat:hover .sp-archive-feat-title {
  color: rgba(255, 255, 255, 0.75);
}

.sp-archive-feat-dek {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: clamp(14px, 0.5vw + 13px, 16px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.48);
}

/* Archive grid */
.sp-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px) clamp(20px, 2.5vw, 36px);
}

@media (max-width: 900px) {
  .sp-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .sp-archive-grid {
    grid-template-columns: 1fr;
  }
}

/* Archive list view (for smaller cards) */
.sp-archive-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-archive-list-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: background 0.2s;
}

@media (max-width: 480px) {
  .sp-archive-list-item {
    grid-template-columns: 80px 1fr;
    gap: 14px;
  }
}

.sp-archive-list-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #101014;
}

.sp-archive-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.sp-archive-list-item:hover .sp-archive-list-img img {
  transform: scale(1.05);
}

.sp-archive-list-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-archive-list-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(15px, 1vw + 12px, 19px);
  line-height: 1.2;
  color: #ffffff;
  transition: color 0.2s;
}

.sp-archive-list-item:hover .sp-archive-list-title {
  color: rgba(255, 255, 255, 0.7);
}

.sp-archive-list-meta {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pagination */
.sp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 56px 0 0;
}

.sp-pagination .page-numbers {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.sp-pagination .page-numbers.current {
  color: #08080a; background: var(--acc);
  border-color: var(--acc, #DFFF00);
}

.sp-pagination .page-numbers:hover:not(.current) {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.sp-pagination .page-numbers.prev,
.sp-pagination .page-numbers.next {
  width: auto;
  padding: 0 14px;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────────────────
   11. SEARCH PAGE
───────────────────────────────────────────────────────────────────────── */

.sp-search-header {
  padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 3vw, 48px);
}

.sp-search-kick {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--acc, #DFFF00);
  margin-bottom: 12px;
}

.sp-search-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(28px, 4vw + 10px, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 24px;
}

.sp-search-title em {
  color: var(--acc, #DFFF00);
  font-style: normal;
}

/* Big search bar */
.sp-search-form {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  max-width: 640px;
  transition: border-color 0.2s;
}

.sp-search-form:focus-within {
  border-color: var(--acc, #DFFF00);
  background: rgba(255, 255, 255, 0.06);
}

.sp-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 16px;
  color: #ffffff;
  min-width: 0;
}

.sp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.sp-search-submit {
  background: var(--acc, #DFFF00);
  border: none;
  padding: 0 24px;
  cursor: pointer;
  color: #08080a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.sp-search-submit:hover {
  background: #DFFF00;
}

.sp-search-meta {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 14px;
}

/* Search results */
.sp-search-results {
  padding-bottom: 80px;
}

.sp-search-results-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-search-item {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: opacity 0.15s;
}

@media (max-width: 600px) {
  .sp-search-item {
    grid-template-columns: 1fr;
  }
}

.sp-search-item:hover {
  opacity: 0.8;
}

.sp-search-item-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-search-item-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(18px, 1.8vw + 12px, 26px);
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.sp-search-item:hover .sp-search-item-title {
  color: rgba(255, 255, 255, 0.75);
}

.sp-search-item-dek {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.42);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-search-item-meta {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-search-item-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #101014;
}

.sp-search-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* No results */
.sp-no-results {
  text-align: center;
  padding: 80px 0;
}

.sp-no-results-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}

.sp-no-results-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(22px, 2.5vw + 14px, 36px);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.sp-no-results-text {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────
   12. 404 PAGE
───────────────────────────────────────────────────────────────────────── */

.sp-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(16px, 4vw, 48px);
  text-align: center;
  background: #08080a;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.sp-404-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sp-404-glow {
  position: absolute;
  width: min(600px, calc(100vw - 32px));
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 255, 0, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sp-404-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.sp-404-num {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(100px, 18vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  display: block;
  margin-bottom: 0;
  user-select: none;
}

.sp-404-acc {
  display: block;
  width: clamp(48px, 8vw, 80px);
  height: 4px;
  background: var(--acc, #DFFF00);
  margin: 0 auto 28px;
  border-radius: 2px;
}

.sp-404-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(28px, 4vw + 10px, 52px);
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.sp-404-text {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: clamp(15px, 0.5vw + 14px, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 40px;
}

.sp-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.sp-btn--primary {
  background: var(--acc); color: #08080a;
}

.sp-btn--primary:hover {
  background: #DFFF00;
  transform: translateY(-1px);
}

.sp-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

.sp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Popular posts on 404 */
.sp-404-popular {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 40px;
  text-align: left;
}

.sp-404-popular-head {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
  text-align: center;
}

.sp-404-popular-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-404-popular-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: opacity 0.15s;
}

.sp-404-popular-item:hover {
  opacity: 0.7;
}

.sp-404-popular-num {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: 28px;
  color: rgba(255, 255, 255, 0.06);
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.sp-404-popular-title {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

/* ─────────────────────────────────────────────────────────────────────────
   13. AUTHOR PAGE
───────────────────────────────────────────────────────────────────────── */

.sp-author-page-header {
  padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
}

.sp-author-page-inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 600px) {
  .sp-author-page-inner {
    grid-template-columns: 1fr;
  }
}

.sp-author-page-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #1d1e22;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.sp-author-page-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #191a1d 0%, #24252a 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: 36px;
  color: rgba(255, 255, 255, 0.3);
}

.sp-author-page-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-author-page-kick {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--acc, #DFFF00);
}

.sp-author-page-name {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(32px, 4vw + 12px, 60px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.sp-author-page-title {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.sp-author-page-bio {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: clamp(15px, 0.5vw + 14px, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 540px;
}

.sp-author-page-stats {
  display: flex;
  gap: 24px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.sp-author-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-author-stat-num {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: 22px;
  color: #ffffff;
}

.sp-author-stat-label {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* Author socials row */
.sp-author-page-socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.sp-author-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 7px 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.sp-author-social-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

/* ─────────────────────────────────────────────────────────────────────────
   14. STATIC PAGE (About, Contact, Subscribe, Privacy)
───────────────────────────────────────────────────────────────────────── */

.sp-static-header {
  padding: clamp(48px, 7vw, 104px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: clamp(40px, 5vw, 72px);
}

.sp-static-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(40px, 6vw + 14px, 88px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
}

.sp-static-title span {
  color: var(--acc, #DFFF00);
}

.sp-static-dek {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: clamp(16px, 0.7vw + 15px, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
}

/* Content body for static pages */
.sp-static-content {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: clamp(16px, 0.4vw + 15px, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 680px;
  padding-bottom: 80px;
}

.sp-static-content h2 {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(22px, 2vw + 14px, 34px);
  color: #ffffff;
  margin: 2.4em 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.sp-static-content h3 {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(18px, 1.5vw + 12px, 24px);
  color: rgba(255, 255, 255, 0.9);
  margin: 2em 0 0.5em;
  line-height: 1.2;
}

.sp-static-content p {
  margin: 0 0 1.5em;
}

.sp-static-content a {
  color: var(--acc, #DFFF00);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.sp-static-content a:hover {
  opacity: 0.8;
}

.sp-static-content strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.sp-static-content ul, .sp-static-content ol {
  margin: 0 0 1.5em 1.2em;
}

.sp-static-content li {
  margin-bottom: 0.5em;
  padding-left: 6px;
}

.sp-static-content ul li::marker {
  color: var(--acc, #DFFF00);
}

/* Contact form */
.sp-contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .sp-contact-layout {
    grid-template-columns: 1fr;
  }
}

.sp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sp-form-label {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sp-form-input,
.sp-form-textarea,
.sp-form-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 15px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.sp-form-input:focus,
.sp-form-textarea:focus,
.sp-form-select:focus {
  border-color: var(--acc, #DFFF00);
  background: rgba(255, 255, 255, 0.07);
}

.sp-form-input::placeholder,
.sp-form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.sp-form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.sp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .sp-form-row {
    grid-template-columns: 1fr;
  }
}

.sp-form-submit {
  align-self: flex-start;
}

/* Contact sidebar info card */
.sp-contact-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 32px;
  position: sticky;
  top: 100px;
}

.sp-contact-info-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 20px;
}

.sp-contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-contact-info-item:last-child {
  border-bottom: none;
}

.sp-contact-info-label {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.sp-contact-info-value {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.sp-contact-info-value a {
  color: var(--acc, #DFFF00);
  text-decoration: none;
}

.sp-contact-info-value a:hover {
  text-decoration: underline;
}

/* Subscribe page */
.sp-subscribe-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  min-height: 60vh;
  padding: 0 0 80px;
}

@media (max-width: 800px) {
  .sp-subscribe-layout {
    grid-template-columns: 1fr;
  }
}

.sp-subscribe-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sp-subscribe-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(32px, 4.5vw + 10px, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.sp-subscribe-title span {
  color: var(--acc, #DFFF00);
}

.sp-subscribe-dek {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: clamp(15px, 0.5vw + 14px, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

.sp-subscribe-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
}

.sp-subscribe-proof-avatars {
  display: flex;
}

.sp-subscribe-proof-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d1e22 0%, #24252a 100%);
  border: 2px solid #08080a;
  margin-left: -8px;
}

.sp-subscribe-proof-avatar:first-child {
  margin-left: 0;
}

.sp-subscribe-form-wrap {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
}

.sp-subscribe-form-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 6px;
}

.sp-subscribe-form-sub {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 24px;
}

.sp-author-apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: 0 0 80px;
}

.sp-author-apply-card {
  position: sticky;
  top: 110px;
}

.sp-author-apply-card select.sp-form-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.45) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.45) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.comment-respond,
.comments-area {
  margin-top: 16px;
}

.comment-reply-title,
.comments-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: clamp(24px, 2vw, 34px);
  color: #fff;
  margin: 0 0 10px;
}

.comment-notes,
.logged-in-as,
.form-allowed-tags {
  font-family: var(--body, "Google Sans", sans-serif);
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.comment-form {
  display: grid;
  gap: 14px;
}

.comment-form label {
  display: block;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 7px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  color: #fff;
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 14px;
  padding: 13px 14px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(223, 255, 0, 0.72);
  background: rgba(255, 255, 255, 0.07);
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--acc, #DFFF00);
  color: #08080a;
  font-family: var(--body, "Google Sans", sans-serif);
  font-weight: 800;
  padding: 0 20px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .sp-author-apply-layout {
    grid-template-columns: 1fr;
  }

  .sp-author-apply-card {
    position: relative;
    top: auto;
  }
}

.sp-subscribe-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.sp-subscribe-tier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sp-subscribe-tier--selected,
.sp-subscribe-tier:hover {
  border-color: var(--acc, #DFFF00);
  background: rgba(223, 255, 0, 0.05);
}

.sp-subscribe-tier-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.sp-subscribe-tier--selected .sp-subscribe-tier-radio {
  border-color: var(--acc, #DFFF00);
  background: var(--acc, #DFFF00);
}

.sp-subscribe-tier-info {
  flex: 1;
}

.sp-subscribe-tier-name {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.sp-subscribe-tier-desc {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 2px;
}

.sp-subscribe-tier-price {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: 16px;
  color: #ffffff;
}

/* About page */
.sp-about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .sp-about-layout {
    grid-template-columns: 1fr;
  }
}

.sp-about-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #101014;
  position: sticky;
  top: 100px;
}

.sp-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Team grid */
.sp-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-bottom: 80px;
}

.sp-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.sp-team-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.sp-team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #1d1e22;
}

.sp-team-name {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: 15px;
  color: #ffffff;
}

.sp-team-role {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-top: -4px;
}

/* Values / Pillars */
.sp-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  margin: clamp(40px, 5vw, 64px) 0;
}

.sp-pillar {
  background: #08080a;
  padding: 28px 24px;
}

.sp-pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(223, 255, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--acc, #DFFF00);
}

.sp-pillar-title {
  font-family: var(--display, "PolySans Bulky", sans-serif);
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 8px;
}

.sp-pillar-text {
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.42);
}

/* ─────────────────────────────────────────────────────────────────────────
   15. BACK TO TOP
───────────────────────────────────────────────────────────────────────── */

.sp-back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s, transform 0.2s;
  z-index: 888;
}

.sp-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sp-back-top:hover {
  background: var(--acc, #DFFF00);
  border-color: var(--acc, #DFFF00);
  color: #08080a;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────────────────
   16. TOAST NOTIFICATION
───────────────────────────────────────────────────────────────────────── */

.sp-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #ffffff;
  color: #08080a;
  font-family: var(--body, "Google Sans", sans-serif);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  white-space: nowrap;
}

.sp-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────────────────────────────────
   17. SCROLL REVEAL
───────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .sp-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .sp-reveal--delay-1 { transition-delay: 0.08s; }
  .sp-reveal--delay-2 { transition-delay: 0.16s; }
  .sp-reveal--delay-3 { transition-delay: 0.24s; }
}

/* ─────────────────────────────────────────────────────────────────────────
   18. RESPONSIVE OVERRIDES
───────────────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .sp-byline-share {
    display: none; /* shown in mobile bar instead */
  }

  .sp-article-body {
    padding: 32px 0 60px;
  }

  .sp-search-item {
    grid-template-columns: 1fr;
  }

  .sp-search-item-img {
    display: none;
  }
}
/* Launch polish: visual placeholders and mobile flow */
.ts-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ts-shell-skip {
  position: absolute;
  left: 16px;
  top: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-100% - 18px));
  background: #dfff00;
  color: #08080a;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.ts-shell-skip:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sp-card:focus-visible,
.sp-archive-feat:focus-visible,
.sp-share-btn:focus-visible {
  outline: 2px solid #dfff00;
  outline-offset: 3px;
}

.sp-page {
  background:
    radial-gradient(circle at 12% 5%, rgba(223, 255, 0, 0.07), transparent 26rem),
    radial-gradient(circle at 85% 12%, rgba(223, 255, 0, 0.06), transparent 24rem),
    #08080a;
}

.sp-card-img-placeholder,
.sp-archive-feat-img .sp-card-img-placeholder {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(223,255,0,0.22), transparent 32%),
    linear-gradient(225deg, rgba(223, 255, 0,0.18), transparent 30%),
    radial-gradient(circle at 74% 30%, rgba(223, 255, 0,0.2), transparent 28%),
    #101014;
}

.sp-card-img-placeholder::before,
.sp-archive-feat-img .sp-card-img-placeholder::before {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  top: 14px;
  color: #dfff00;
  font: 800 10px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sp-card-img-placeholder::after,
.sp-archive-feat-img .sp-card-img-placeholder::after {
  content: attr(data-title);
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  color: #ffffff;
  font: 800 clamp(17px, 2vw, 28px)/1.02 "PolySans Bulky", system-ui, sans-serif;
  max-width: 18ch;
}

.sp-card {
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.sp-card:hover,
.sp-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(223, 255, 0, 0.42);
}

.sp-article-visual {
  margin: 24px 0 34px;
}

.sp-article-visual-art {
  position: relative;
  min-height: clamp(260px, 42vw, 520px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 25% 22%, rgba(223,255,0,0.28), transparent 20%),
    radial-gradient(circle at 72% 38%, rgba(223, 255, 0,0.22), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent 36%),
    #101014;
}

.sp-article-visual-art::before {
  content: "";
  position: absolute;
  inset: clamp(22px, 5vw, 56px);
  border: 1px solid rgba(223, 255, 0, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(223, 255, 0, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.54;
  mask-image: radial-gradient(circle at 68% 42%, #000 0 28%, transparent 64%);
}

.sp-article-visual-art::after {
  content: "";
  position: absolute;
  right: clamp(26px, 7vw, 76px);
  bottom: clamp(24px, 6vw, 68px);
  width: clamp(104px, 20vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(223, 255, 0, 0.9) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(223, 255, 0, 0.24) 0 28%, transparent 30%),
    conic-gradient(from 20deg, rgba(223, 255, 0, 0.34), transparent 24%, rgba(255,255,255,0.18), transparent 72%, rgba(223,255,0,0.34));
  box-shadow: 0 0 80px rgba(223, 255, 0, 0.22);
  opacity: 0.9;
}

.sp-article-visual-art span {
  position: absolute;
  left: clamp(18px, 5vw, 48px);
  top: clamp(18px, 5vw, 44px);
  color: #dfff00;
  font: 800 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sp-article-visual figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.sp-editorial-note {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 18px;
  color: #f7f7f2;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(223, 255, 0, 0.22);
  border-radius: 16px;
}

.sp-editorial-note strong {
  color: #dfff00;
  font: 800 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 782px) {
  .sp-article-visual-art::before { background-size: 34px 34px; }
}

/* Overnight polish: mobile containment, focus-safe nav, and motion layer */
html,
body,
#thespecd-root {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.sp-page,
.sp-container,
.sp-container--narrow,
.sp-container--wide,
.sp-article-header,
.sp-static-header,
.sp-contact-layout,
.sp-subscribe-layout,
.sp-about-layout {
  min-width: 0;
  box-sizing: border-box;
}

.sp-article-title,
.sp-static-title,
.sp-subscribe-title,
.sp-search-title,
.sp-archive-title,
.sp-author-title,
.sp-card-title,
.sp-archive-feat-title,
.sp-content h2,
.sp-content h3,
.sp-static-content h2,
.sp-static-content h3 {
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}

.sp-static-dek,
.sp-article-dek,
.sp-subscribe-dek,
.sp-card-dek,
.sp-search-item-dek {
  overflow-wrap: break-word;
}

.sp-subscribe-copy li span[style] {
  background: rgba(223, 255, 0, 0.14) !important;
  color: #dfff00 !important;
}

@media (max-width: 782px) {
  .sp-page {
    padding-top: 42px;
  }

  .sp-container,
  .sp-container--narrow,
  .sp-container--wide {
    width: 100%;
    max-width: 100%;
    padding-inline: 20px;
  }

  .sp-static-header {
    padding-top: clamp(56px, 16vw, 92px);
    margin-bottom: 34px;
  }

  .sp-article-header {
    padding-top: clamp(42px, 12vw, 68px);
  }

  .sp-article-lead-visual {
    margin-top: clamp(18px, 6vw, 34px);
    margin-bottom: clamp(18px, 6vw, 28px);
  }

  .sp-article-lead-visual + .sp-article-header {
    padding-top: 0;
  }

  .sp-article-title,
  .sp-static-title,
  .sp-subscribe-title,
  .sp-search-title,
  .sp-archive-title,
  .sp-author-title {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 46px) !important;
    line-height: 1.04 !important;
    letter-spacing: 0 !important;
  }

  .sp-static-title span,
  .sp-subscribe-title span {
    display: inline;
  }

  .sp-static-dek,
  .sp-article-dek,
  .sp-subscribe-dek {
    max-width: 100%;
    font-size: clamp(15px, 4.1vw, 18px);
    line-height: 1.58;
  }

  .sp-contact-layout,
  .sp-subscribe-layout,
  .sp-about-layout {
    grid-template-columns: 1fr !important;
    gap: 28px;
    min-height: auto !important;
    padding-bottom: 56px;
  }

  .sp-form-row {
    grid-template-columns: 1fr !important;
  }

  .sp-form-input,
  .sp-form-textarea,
  .sp-form-select {
    min-width: 0;
  }

  .sp-contact-info,
  .sp-about-img {
    position: static;
  }

  .sp-contact-info,
  .sp-subscribe-form-wrap {
    padding: 22px;
    border-radius: 14px;
  }

  .sp-article-visual-art {
    min-height: 300px;
    border-radius: 16px;
  }

  .sp-article-visual-art::before {
    inset: 18px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ts-focus-reveal {
    opacity: 0;
    filter: blur(16px);
    transform: translate3d(0, 28px, 0) scale(0.985);
    transition:
      opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 860ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 860ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--ts-reveal-delay, 0ms);
    will-change: opacity, filter, transform;
  }

  .ts-focus-reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }

  .ts-parallax {
    transform: translate3d(0, calc((var(--ts-parallax-y, 0) * 1px) + var(--ts-parallax-hover-y, 0px)), 0) scale(var(--ts-parallax-scale, 1.025)) scale(var(--ts-parallax-hover-scale, 1));
    transition: transform 150ms linear;
    will-change: transform;
  }

  .sp-card-img-placeholder::after,
  .sp-article-visual-art::before,
  .sp-article-visual-art::after {
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sp-card:hover .sp-card-img-placeholder::after,
  .sp-archive-feat:hover .sp-card-img-placeholder::after,
  .sp-article-visual-art:hover::before,
  .sp-article-visual-art:hover::after {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-focus-reveal,
  .sp-reveal,
  .hs-reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Brand guard: keep legacy editor content on the current type/color system. */
.sp-page .has-vivid-red-color,
.sp-page .has-luminous-vivid-orange-color,
.sp-page .has-luminous-vivid-amber-color,
.sp-page .has-light-green-cyan-color,
.sp-page .has-vivid-green-cyan-color,
.sp-page .has-pale-cyan-blue-color,
.sp-page .has-vivid-cyan-blue-color,
.sp-page .has-vivid-purple-color,
.sp-page [style*="#00D4C0"],
.sp-page [style*="#00d4c0"],
.sp-page [style*="rgb(0, 212, 192)"] {
  color: var(--acc, #DFFF00) !important;
}

.sp-page .has-vivid-red-background-color,
.sp-page .has-luminous-vivid-orange-background-color,
.sp-page .has-luminous-vivid-amber-background-color,
.sp-page .has-light-green-cyan-background-color,
.sp-page .has-vivid-green-cyan-background-color,
.sp-page .has-pale-cyan-blue-background-color,
.sp-page .has-vivid-cyan-blue-background-color,
.sp-page .has-vivid-purple-background-color {
  background-color: rgba(223, 255, 0, 0.14) !important;
}

.sp-static-content > div[style*="max-width"] {
  max-width: 760px !important;
  margin: 0 !important;
  padding: clamp(24px, 4vw, 48px) 0 !important;
}

.sp-static-content > div[style*="max-width"] > h1:first-child {
  display: none !important;
}

.sp-static-content [style*="Sora"],
.sp-static-content [style*="font-family:Sora"],
.sp-static-content [style*="font-family: Sora"] {
  font-family: var(--display, "PolySans Bulky", sans-serif) !important;
  letter-spacing: 0 !important;
}

.sp-static-content p[style],
.sp-static-content ul[style],
.sp-static-content ol[style],
.sp-static-content li[style] {
  font-family: var(--body, "Google Sans", sans-serif) !important;
  color: rgba(255, 255, 255, 0.62) !important;
  line-height: 1.75 !important;
}

.sp-static-content h2[style],
.sp-static-content h3[style],
.sp-static-content strong[style] {
  color: rgba(255, 255, 255, 0.92) !important;
}

.sp-static-content h2[style],
.sp-static-content h3[style] {
  margin-top: 2em !important;
  margin-bottom: 0.65em !important;
}

.sp-static-content a[style] {
  color: var(--acc, #DFFF00) !important;
}

/* Single global header: inner pages now use the homepage header system. */
.ts-home-shell {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(8, 8, 10, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.admin-bar .ts-home-shell {
  top: 32px;
}

.ts-home-shell .sdp-wrap {
  width: 100%;
  max-width: 1500px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto;
  padding: 18px clamp(16px, 2.8vw, 40px) 14px !important;
  overflow: visible !important;
}

.ts-home-shell .sdp-top {
  margin-bottom: 14px !important;
}

.ts-home-shell .sdp-brand {
  color: #ffffff !important;
}

.ts-home-shell .sdp-logo {
  height: clamp(30px, 3.2vw, 38px) !important;
  width: auto;
  display: block;
}

.ts-home-shell .sdp-pill,
.ts-home-shell .sdp-nav,
.ts-home-shell .sdp-nav-more-btn {
  background: rgba(10, 10, 10, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

.ts-home-shell .sdp-pill:hover,
.ts-home-shell .sdp-pill:focus-visible,
.ts-home-shell .sdp-nav-more-btn:hover,
.ts-home-shell .sdp-nav-more-btn:focus-visible {
  background: rgba(20, 20, 20, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: #ffffff !important;
}

.ts-home-shell .sdp-nav-wrap {
  margin-bottom: 0 !important;
  position: relative;
  z-index: 80;
}

.ts-home-shell .sdp-nav-wrap > .sdp-nav {
  margin-bottom: 0 !important;
}

.ts-home-shell .sdp-nav-item:hover,
.ts-home-shell .sdp-nav-item.hover,
.ts-home-shell .sdp-nav-more-btn.on {
  color: #08080a !important;
  background: var(--acc, #DFFF00) !important;
  border-color: var(--acc, #DFFF00) !important;
}

.ts-home-shell .sdp-social:hover {
  background: var(--acc, #DFFF00) !important;
}

.ts-home-shell .sdp-social:hover svg path {
  fill: #08080a !important;
}

.ts-home-shell .sdp-overlay {
  z-index: 9998;
}

.ts-home-shell .sdp-menu-socials .sdp-socials {
  display: contents;
}

.ts-home-shell + .sp-page {
  padding-top: clamp(34px, 4vw, 56px) !important;
}

.ts-home-shell a:focus-visible,
.ts-home-shell button:focus-visible,
.ts-home-shell input:focus-visible {
  outline: 2px solid var(--acc, #DFFF00);
  outline-offset: 3px;
}

@media (max-width: 782px) {
  .admin-bar .ts-home-shell {
    top: 46px;
  }

  .ts-home-shell .sdp-wrap {
    padding: 14px clamp(20px, 5vw, 28px) 12px !important;
  }

  .ts-home-shell + .sp-page {
    padding-top: clamp(28px, 8vw, 42px) !important;
  }
}

@media (max-width: 767px) {
  .ts-home-shell .sdp-top {
    margin-bottom: 0 !important;
  }

  .ts-home-shell .sdp-top .sdp-pill,
  .ts-home-shell .sdp-top .sdp-pill--ico {
    background: var(--glass-bg, rgba(12, 12, 12, 0.72)) !important;
    border-color: var(--glass-border, rgba(255, 255, 255, 0.16)) !important;
    backdrop-filter: var(--glass-blur, blur(28px) saturate(160%)) !important;
    -webkit-backdrop-filter: var(--glass-blur, blur(28px) saturate(160%)) !important;
  }
}

/* Launch QA: inner-page header/menu must keep the homepage glass language. */
.ts-home-shell {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.10)) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
  isolation: isolate;
}

.ts-home-shell .sdp-wrap,
.ts-home-shell .sdp-nav-wrap,
.ts-home-shell .sdp-nav {
  overflow: visible !important;
}

.ts-home-shell .sdp-top .sdp-pill,
.ts-home-shell .sdp-top .sdp-pill--ico,
.ts-home-shell .sdp-nav,
.ts-home-shell .sdp-nav-more-btn,
.ts-home-shell .sdp-nav-more-pop,
.ts-home-shell .sdp-mega-inner,
.ts-home-shell .sdp-mega-feat,
.ts-home-shell-overlay .sdp-search,
.ts-home-shell-overlay .sdp-menu,
.ts-home-shell-overlay .sdp-modal,
.ts-home-shell .sdp-menu-close,
.ts-home-shell .sdp-menu-cta:not(.sdp-menu-cta--primary),
.ts-home-shell .sdp-menu-feat,
.ts-home-shell .sdp-search-chip,
.ts-home-shell-overlay .sdp-menu-close,
.ts-home-shell-overlay .sdp-menu-cta:not(.sdp-menu-cta--primary),
.ts-home-shell-overlay .sdp-menu-feat,
.ts-home-shell-overlay .sdp-search-chip {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.76), rgba(8, 8, 10, 0.58)) !important;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.16)) !important;
  backdrop-filter: var(--glass-blur, blur(28px) saturate(160%)) !important;
  -webkit-backdrop-filter: var(--glass-blur, blur(28px) saturate(160%)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.22) !important;
}

.ts-home-shell-overlay.sdp-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  min-height: 100vh !important;
  z-index: 9998 !important;
  background: rgba(0, 0, 0, 0.56) !important;
  backdrop-filter: blur(10px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
}

.ts-home-shell-overlay.sdp-overlay--menu {
  align-items: stretch !important;
  justify-content: flex-end !important;
  overflow-x: hidden !important;
}

.ts-home-shell-overlay .sdp-menu {
  box-sizing: border-box !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  margin-right: 0 !important;
  transform: translate3d(0, 0, 0) !important;
}

.ts-home-shell .sdp-top .sdp-pill:hover,
.ts-home-shell .sdp-top .sdp-pill:focus-visible,
.ts-home-shell .sdp-nav-more-btn:hover,
.ts-home-shell .sdp-nav-more-btn:focus-visible,
.ts-home-shell .sdp-menu-close:hover,
.ts-home-shell .sdp-menu-cta:not(.sdp-menu-cta--primary):hover,
.ts-home-shell .sdp-menu-feat:hover,
.ts-home-shell .sdp-search-chip:hover,
.ts-home-shell-overlay .sdp-menu-close:hover,
.ts-home-shell-overlay .sdp-menu-cta:not(.sdp-menu-cta--primary):hover,
.ts-home-shell-overlay .sdp-menu-feat:hover,
.ts-home-shell-overlay .sdp-search-chip:hover {
  background: rgba(20, 20, 20, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
}

@media (max-width: 767px) {
  .ts-home-shell .sdp-top .sdp-pill,
  .ts-home-shell .sdp-top .sdp-pill--ico {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0 !important;
    gap: 0 !important;
  }

  .ts-home-shell .sdp-top .sdp-pill svg {
    width: 20px !important;
    height: 20px !important;
  }
}

/* Launch QA: keep the shared footer reveal crisp on inner templates. */
.hs-footer.ts-focus-reveal {
  transition-duration: 560ms, 680ms, 680ms !important;
  transition-delay: 0ms !important;
}

/* Glass consistency: inner-page header/overlays must match Top Stories. */
.ts-home-shell .sdp-top .sdp-pill,
.ts-home-shell .sdp-top .sdp-pill--ico,
.ts-home-shell .sdp-pill,
.ts-home-shell .sdp-tag,
.ts-home-shell .sdp-feat-cat,
.ts-home-shell .sdp-nav,
.ts-home-shell .sdp-nav-more-btn,
.ts-home-shell .sdp-nav-more-pop,
.ts-home-shell .sdp-mega-inner,
.ts-home-shell .sdp-mega-feat,
.ts-home-shell-overlay .sdp-search,
.ts-home-shell-overlay .sdp-search-close,
.ts-home-shell-overlay .sdp-search-chip,
.ts-home-shell-overlay .sdp-menu,
.ts-home-shell-overlay .sdp-modal,
.ts-home-shell .sdp-menu-close,
.ts-home-shell .sdp-menu-cta:not(.sdp-menu-cta--primary),
.ts-home-shell .sdp-menu-feat,
.ts-home-shell .sdp-menu-socials a,
.ts-home-shell-overlay .sdp-menu-close,
.ts-home-shell-overlay .sdp-menu-cta:not(.sdp-menu-cta--primary),
.ts-home-shell-overlay .sdp-menu-feat,
.ts-home-shell-overlay .sdp-menu-socials a,
.ts-home-shell-overlay .sdp-modal-close,
.ts-home-shell-overlay .sdp-modal-form input,
.ts-home-shell-overlay .sdp-modal-sso button {
  background: var(--glass-bg, rgba(12, 12, 12, 0.72)) !important;
  background-image: none !important;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.16)) !important;
  backdrop-filter: var(--glass-blur, blur(28px) saturate(160%)) !important;
  -webkit-backdrop-filter: var(--glass-blur, blur(28px) saturate(160%)) !important;
  box-shadow: none !important;
}

.ts-home-shell .sdp-top .sdp-pill:hover,
.ts-home-shell .sdp-top .sdp-pill:focus-visible,
.ts-home-shell .sdp-nav-more-btn:hover,
.ts-home-shell .sdp-nav-more-btn:focus-visible,
.ts-home-shell .sdp-search-close:hover,
.ts-home-shell-overlay .sdp-search-close:hover,
.ts-home-shell .sdp-menu-close:hover,
.ts-home-shell .sdp-menu-cta:not(.sdp-menu-cta--primary):hover,
.ts-home-shell .sdp-menu-feat:hover,
.ts-home-shell .sdp-menu-socials a:hover,
.ts-home-shell .sdp-search-chip:hover,
.ts-home-shell-overlay .sdp-menu-close:hover,
.ts-home-shell-overlay .sdp-menu-cta:not(.sdp-menu-cta--primary):hover,
.ts-home-shell-overlay .sdp-menu-feat:hover,
.ts-home-shell-overlay .sdp-menu-socials a:hover,
.ts-home-shell-overlay .sdp-search-chip:hover,
.ts-home-shell-overlay .sdp-modal-close:hover,
.ts-home-shell-overlay .sdp-modal-sso button:hover {
  background: rgba(20, 20, 20, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
}

/* Inner pages use the same menu glass stack as the homepage. */
.ts-home-shell-overlay.sdp-overlay--menu {
  --sdp-menu-glass-width: min(960px, 94vw);
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: hidden !important;
}

.ts-home-shell-overlay.sdp-overlay--menu::before {
  content: "";
  position: absolute;
  inset: 0 var(--sdp-menu-glass-width) 0 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  pointer-events: none;
}

.ts-home-shell-overlay.sdp-overlay--menu .sdp-menu {
  position: relative !important;
  z-index: 1 !important;
  background: var(--glass-bg, rgba(12, 12, 12, 0.72)) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: var(--glass-blur, blur(28px) saturate(160%)) !important;
  -webkit-backdrop-filter: var(--glass-blur, blur(28px) saturate(160%)) !important;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08), -18px 0 70px rgba(0, 0, 0, 0.26) !important;
}

@media (min-width: 768px) and (max-width: 960px) {
  .ts-home-shell-overlay.sdp-overlay--menu {
    --sdp-menu-glass-width: min(460px, 92vw);
  }
}

@media (min-width: 961px) and (max-width: 1024px) and (hover: none) {
  .ts-home-shell-overlay.sdp-overlay--menu {
    --sdp-menu-glass-width: min(520px, 72vw);
  }
}

@media (max-width: 767px) {
  .ts-home-shell-overlay.sdp-overlay--menu {
    --sdp-menu-glass-width: 100vw;
  }

  .ts-home-shell-overlay.sdp-overlay--menu::before {
    display: none;
  }

  .ts-home-shell-overlay.sdp-overlay--menu .sdp-menu {
    border-left: 0 !important;
  }
}

/* Header/nav hover glass: inner templates inherit the homepage frosted states. */
.ts-home-shell .sdp-top .sdp-pill:hover,
.ts-home-shell .sdp-top .sdp-pill:focus-visible,
.ts-home-shell .sdp-top .sdp-pill--ico:hover,
.ts-home-shell .sdp-top .sdp-pill--ico:focus-visible,
.ts-home-shell .sdp-nav:hover,
.ts-home-shell .sdp-nav:focus-within,
.ts-home-shell .sdp-nav-more-btn:hover,
.ts-home-shell .sdp-nav-more-btn:focus-visible,
.ts-home-shell .sdp-nav-more-btn.on,
.ts-home-shell .sdp-nav-more-pop,
.ts-home-shell .sdp-nav-more-pop:hover,
.ts-home-shell .sdp-mega-inner,
.ts-home-shell .sdp-mega-inner:hover {
  background: var(--glass-hover-bg, rgba(12, 12, 12, 0.58)) !important;
  background-image: var(--glass-hover-shine, linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025))) !important;
  border-color: var(--glass-hover-border, rgba(255, 255, 255, 0.28)) !important;
  backdrop-filter: var(--glass-blur, blur(28px) saturate(160%)) !important;
  -webkit-backdrop-filter: var(--glass-blur, blur(28px) saturate(160%)) !important;
  box-shadow: var(--glass-hover-shadow, inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 42px rgba(0, 0, 0, 0.18)) !important;
}

.ts-home-shell .sdp-nav-item:hover,
.ts-home-shell .sdp-nav-item.hover,
.ts-home-shell .sdp-nav-more-item:hover,
.ts-home-shell .sdp-menu-link:hover,
.ts-home-shell .sdp-mega-link:hover,
.ts-home-shell-overlay .sdp-menu-link:hover {
  color: var(--acc, #DFFF00) !important;
  background: rgba(12, 12, 12, 0.42) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)) !important;
  border-color: rgba(223, 255, 0, 0.2) !important;
  backdrop-filter: blur(18px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
  box-shadow: inset 0 0 0 1px rgba(223, 255, 0, 0.18) !important;
}

.ts-home-shell .sdp-nav-more-btn:hover,
.ts-home-shell .sdp-nav-more-btn:focus-visible,
.ts-home-shell .sdp-nav-more-btn.on {
  color: var(--acc, #DFFF00) !important;
}

/* Mega menu glass: inner templates use the same readable frosted flyout. */
.ts-home-shell .sdp-mega {
  z-index: 140 !important;
}

.ts-home-shell .sdp-mega-inner {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: rgba(8, 8, 10, 0.82) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  backdrop-filter: blur(44px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(44px) saturate(180%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 24px 72px rgba(0, 0, 0, 0.32) !important;
}

.ts-home-shell .sdp-mega-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.018) 48%, rgba(0, 0, 0, 0.18));
  backdrop-filter: blur(52px) saturate(185%) !important;
  -webkit-backdrop-filter: blur(52px) saturate(185%) !important;
  pointer-events: none;
}

.ts-home-shell .sdp-mega-inner > * {
  position: relative !important;
  z-index: 1 !important;
}
