/* public/src/features/documents/about.css */
.about-page {
  --about-ink: #17221d;
  --about-muted: #637069;
  --about-paper: #f3f0e8;
  --about-card: #fbfaf6;
  --about-sage: #a8c3a0;
  --about-coral: #d8785f;
  --about-line: rgba(23, 34, 29, .16);
  --about-highlight-bg: #17221d;
  --about-highlight-ink: #f3f0e8;
  --about-highlight-muted: #c9d4cc;
  background: transparent;
  color: var(--about-ink);
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

html[data-theme="dark"] .about-page,
html[data-theme="dark-slate"] .about-page {
  --about-ink: var(--color-text-primary);
  --about-muted: var(--color-text-secondary);
  --about-paper: var(--color-background);
  --about-card: var(--color-surface);
  --about-sage: var(--color-primary);
  --about-coral: var(--color-accent);
  --about-line: var(--color-border);
  --about-highlight-bg: var(--color-surface);
  --about-highlight-ink: var(--color-text-primary);
  --about-highlight-muted: var(--color-text-secondary);
}

.about-page .top-bar {
  background: var(--about-line);
}

.about-page .top-bar-fill {
  background: var(--color-text-primary);
  width: 100%;
}

.about-page .top-bar {
  width: calc(100% + var(--sidebar-collapsed-width) + 16px);
  margin-right: calc(-1 * (var(--sidebar-collapsed-width) + 16px));
  transition: width 250ms cubic-bezier(0.4, 0, 0.2, 1),
    margin-right 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.about-page.sidebar-expanded .top-bar {
  width: calc(100% + var(--sidebar-expanded-width) + 16px);
  margin-right: calc(-1 * (var(--sidebar-expanded-width) + 16px));
}

@media (max-width: 768px) {

  .about-page .top-bar,
  .about-page.sidebar-expanded .top-bar {
    width: calc(100% + 16px);
    margin-right: -16px;
  }
}

.about-page .page-wrapper {
  max-width: calc(100vw - var(--sidebar-collapsed-width));
  padding: 52px 32px 100px;
}

.about-page .docs-switcher {
  background: var(--about-card);
  border-color: var(--about-line);
  border-right-color: var(--about-coral);
}

.about-page .docs-switcher-link--active {
  background: var(--about-ink);
  color: var(--about-paper);
}

.about-page .header {
  align-items: flex-start;
  text-align: right;
  border-bottom: 1px solid var(--about-line);
  padding: 0 0 36px;
  margin-bottom: 0;
}

.about-page .logo-lockup {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 54px;
}

.about-page .logo-mark {
  border-radius: 14px;
}

.about-page .brand-name {
  color: var(--about-muted);
  letter-spacing: .08em;
}

.about-page h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--about-ink);
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.about-page .hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--about-coral);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.about-page .hero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.about-page .hero-lede {
  max-width: 680px;
  margin: 0;
  color: var(--about-muted);
  font-size: 1.14rem;
  line-height: 1.9;
  text-align: right;
}

.about-page .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr);
  gap: 56px;
  padding: 68px 0 76px;
  border-bottom: 1px solid var(--about-line);
}

.about-page .hero-note {
  align-self: end;
  padding: 18px 20px;
  border-right: 3px solid var(--about-coral);
  background: var(--about-card);
  box-shadow: 8px 8px 0 var(--about-sage);
}

.about-page .hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.about-page .hero-note span {
  color: var(--about-muted);
  font-size: .86rem;
  line-height: 1.75;
}

.about-page .about-section {
  padding: 74px 0;
  border-bottom: 1px solid var(--about-line);
}

.about-page .about-section-heading {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 38px;
}

.about-page .about-section-heading h2 {
  margin: 0;
  color: var(--about-ink);
  font-size: 1.7rem;
  line-height: 1.3;
}

.about-page .about-section-heading p {
  max-width: 590px;
  margin: 0;
  color: var(--about-muted);
  text-align: right;
}

.about-page .origin-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.about-page .origin-copy p {
  margin: 0;
  color: var(--about-ink);
  font-size: 1rem;
  line-height: 2;
  text-align: right;
}

.about-page .origin-copy p:first-child {
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.5rem;
  line-height: 1.75;
}

.about-page .principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-page .principle {
  min-height: 184px;
  padding: 22px;
  background: var(--about-card);
  border: 1px solid var(--about-line);
}

.about-page .principle:nth-child(2) {
  transform: translateY(22px);
}

.about-page .principle:nth-child(3) {
  background: var(--about-highlight-bg);
  color: var(--about-highlight-ink);
}

.about-page .principle-mark {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 26px;
  border: 2px solid var(--about-coral);
  border-radius: 50%;
}

.about-page .principle h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.about-page .principle p {
  margin: 0;
  color: var(--about-muted);
  font-size: .86rem;
  line-height: 1.75;
  text-align: right;
}

.about-page .principle:nth-child(3) p {
  color: var(--about-highlight-muted);
}

.about-page .flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--about-line);
}

.about-page .flow-step {
  min-height: 180px;
  padding: 22px 18px;
  border-left: 1px solid var(--about-line);
}

.about-page .flow-step:last-child {
  border-left: 0;
}

.about-page .flow-step b {
  display: block;
  margin-bottom: 34px;
  color: var(--about-coral);
  font-size: 1.4rem;
  font-weight: 500;
}

.about-page .flow-step h3 {
  margin-bottom: 8px;
  font-size: .98rem;
}

.about-page .flow-step p {
  margin: 0;
  color: var(--about-muted);
  font-size: .82rem;
  line-height: 1.7;
  text-align: right;
}

/* ── Platform Stats ────────────────────────────────────────────────────────── */
.about-page .platform-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-page .platform-stat-card {
  --stat-accent: #66a8ff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px 22px;
  background:
    radial-gradient(ellipse at 50% -22%, color-mix(in srgb, var(--stat-accent) 16%, transparent), transparent 65%),
    linear-gradient(145deg, color-mix(in srgb, var(--about-card) 96%, white 4%), var(--about-card) 62%);
  border: 1px solid color-mix(in srgb, var(--stat-accent) 24%, var(--about-line));
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.about-page .platform-stat-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 18% auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stat-accent), transparent);
  opacity: .8;
}

.about-page .platform-stat-card::after {
  content: attr(data-stat-index);
  position: absolute;
  z-index: -1;
  left: 16px;
  bottom: -28px;
  color: var(--stat-accent);
  opacity: .055;
  font: 800 7rem/1 system-ui, sans-serif;
  letter-spacing: -.1em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.about-page .platform-stat-card:nth-child(2) { --stat-accent: #66d6c0; }
.about-page .platform-stat-card:nth-child(3) { --stat-accent: #bd91ff; }
.about-page .platform-stat-card:nth-child(4) { --stat-accent: #ffc66d; }
.about-page .platform-stat-card:nth-child(5) { --stat-accent: #ff8a9c; }
.about-page .platform-stat-card:nth-child(6) { --stat-accent: #72c8ff; }

@media (hover: hover) {
  .about-page .platform-stat-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--stat-accent) 58%, var(--about-line));
    box-shadow: 0 18px 36px rgba(0, 0, 0, .2), 0 0 28px color-mix(in srgb, var(--stat-accent) 10%, transparent);
  }
}

.about-page .platform-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 13px;
  color: var(--stat-accent);
  background: color-mix(in srgb, var(--stat-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--stat-accent) 20%, transparent);
  border-radius: 12px;
}

.about-page .platform-stat-icon svg {
  width: 26px;
  height: 26px;
}

.about-page .platform-stat-value {
  display: block;
  margin-bottom: 6px;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 2rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--about-ink);
}

.about-page .platform-stat-label {
  display: block;
  color: var(--about-muted);
  font-size: .82rem;
}

/* Skeleton state — shown until /api/admin?platformStats=true resolves,
   mirrors the shimmer pattern used on control.html's own skeletons so a
   slow/failed fetch doesn't just sit on a bare "—". */
.about-page .platform-stat-loading .platform-stat-value {
  position: relative;
  color: transparent;
}

.about-page .platform-stat-loading .platform-stat-value::after {
  content: "";
  position: absolute;
  inset: 2px 30%;
  border-radius: 6px;
  background-color: var(--about-line);
  background-image: linear-gradient(90deg,
      var(--about-line) 0%,
      var(--about-sage) 50%,
      var(--about-line) 100%);
  background-size: 300px 100%;
  background-repeat: no-repeat;
  animation: about-stat-shimmer 1.6s ease-in-out infinite;
}

@keyframes about-stat-shimmer {
  0% {
    background-position: -300px 0;
  }

  100% {
    background-position: 300px 0;
  }
}

/* ── Live platform views (counter · online now · today · 30-day sparkline) ──
   Data: GET /api/admin?liveStats=true, polled every ~15 s (about-stats.js).
   Reuses the .platform-stat-* look and the same shimmer while loading. */
.about-page .live-stats {
  display: grid;
  grid-template-columns: 1.15fr .65fr 1.6fr;
  gap: 14px;
  margin-top: 14px;
}

.about-page .live-stats-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 22px 20px;
  background: var(--about-card);
  border: 1px solid var(--about-line);
  text-align: center;
}

.about-page .live-stats-label {
  color: var(--about-muted);
  font-size: .82rem;
}

.about-page .live-stats-total {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
}

.about-page .live-online {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  padding: 5px 12px;
  border: 1px solid var(--about-line);
  border-radius: 999px;
  color: var(--about-muted);
  font-size: .82rem;
}

.about-page .live-online b {
  color: var(--about-ink);
  font-variant-numeric: tabular-nums;
}

.about-page .live-stats-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.about-page .live-sub-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--about-surface-2, rgba(255, 255, 255, .05));
  border: 1px solid var(--about-line);
  color: var(--about-muted);
  font-size: .78rem;
}

.about-page .live-sub-stat b {
  color: var(--about-ink);
  font-variant-numeric: tabular-nums;
}

.about-page .live-sub-views {
  color: var(--about-muted);
  font-size: .78rem;
  margin-top: 2px;
}

.about-page .live-sub-views b {
  color: var(--about-ink);
  font-variant-numeric: tabular-nums;
}

.about-page .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fb26b;
  animation: about-live-pulse 2s ease-out infinite;
}

@keyframes about-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 178, 107, .55);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(47, 178, 107, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(47, 178, 107, 0);
  }
}

.about-page .live-stats-block--trend {
  align-items: stretch;
  text-align: start;
}

.about-page .live-spark-wrap {
  position: relative;
  height: 72px;
  margin-top: 6px;
  touch-action: pan-y;
  cursor: crosshair;
}

.about-page .live-spark {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--about-coral);
}

.about-page .live-spark-line--draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: about-live-draw 1.1s ease-out forwards;
}

.about-page .live-spark-area--fade {
  opacity: 0;
  animation: about-live-fade .9s ease-out .35s forwards;
}

@keyframes about-live-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes about-live-fade {
  to {
    opacity: 1;
  }
}

.about-page .live-spark-tip {
  position: absolute;
  top: -8px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--about-highlight-bg);
  color: var(--about-highlight-ink);
  font-size: .75rem;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

@media (max-width: 900px) {
  .about-page .platform-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .about-page .live-stats {
    grid-template-columns: 1fr 1fr;
  }

  .about-page .live-stats-block--trend {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .about-page .platform-stats {
    gap: 10px;
  }

  .about-page .platform-stat-card {
    min-height: 158px;
    padding: 20px 12px 18px;
    border-radius: 13px;
  }

  .about-page .platform-stat-value {
    font-size: 1.8rem;
  }

  .about-page .live-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-page .live-dot {
    animation: none;
  }

  .about-page .live-spark-line--draw {
    animation: none;
    stroke-dashoffset: 0;
  }

  .about-page .live-spark-area--fade {
    animation: none;
    opacity: 1;
  }
}

/* ── Tech Stack ────────────────────────────────────────────────────────────── */
#techStackPills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Technology story cards */
.about-page .stack-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--about-coral);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.about-page .stack-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-page .stack-feature-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--about-line);
  border-radius: 20px;
  background: var(--about-card);
}

.about-page .stack-feature-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  left: -76px;
  bottom: -94px;
  border: 1px solid var(--about-line);
  border-radius: 50%;
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--about-coral) 8%, transparent), 0 0 0 38px color-mix(in srgb, var(--about-sage) 8%, transparent);
  pointer-events: none;
}

.about-page .stack-index {
  display: block;
  margin-bottom: 22px;
  color: var(--about-coral);
  font: 700 .65rem/1.2 "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: .1em;
}

.about-page .stack-feature-card h3 {
  margin: 0 0 9px;
  color: var(--about-ink);
  font-size: 1.28rem;
}

.about-page .stack-feature-card p {
  max-width: 54ch;
  margin: 0;
  color: var(--about-muted);
  line-height: 1.85;
}

.about-page .stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.about-page .stack-tags span {
  padding: 5px 10px;
  border: 1px solid var(--about-line);
  border-radius: 999px;
  color: var(--about-ink);
  font-size: .73rem;
}

.about-page .stack-feature-card--dark {
  background: var(--about-highlight-bg);
  border-color: transparent;
}

.about-page .stack-feature-card--dark h3 {
  color: var(--about-highlight-ink);
}

.about-page .stack-feature-card--dark p,
.about-page .stack-feature-card--dark .stack-tags span {
  color: var(--about-highlight-muted);
}

.about-page .stack-feature-card--dark .stack-tags span {
  border-color: var(--about-line);
}

.about-page .stack-feature-card--admin {
  grid-column: 1/-1;
  background: linear-gradient(125deg, color-mix(in srgb, var(--about-sage) 24%, var(--about-card)), var(--about-card) 70%);
}

@media (max-width:640px) {
  .about-page .stack-showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-page .stack-feature-card--admin,
  .about-page {
    grid-column: auto;
  }
}

.about-page .creator {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "stamp copy"
    "links copy";
  gap: 24px 56px;
  align-items: start;
  padding-bottom: 30px;
}

.about-page .creator-stamp {
  grid-area: stamp;
  padding: 28px;
  background: var(--about-coral);
  color: #fff9ef;
  transform: rotate(-2deg);
}

.about-page .creator-photo {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 3px solid #fff9ef;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.about-page .creator-stamp span {
  display: block;
  margin-bottom: 18px;
  font-size: .72rem;
  letter-spacing: .12em;
}

.about-page .creator-stamp strong {
  display: block;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 2.2rem;
  line-height: 1.35;
}

.about-page .creator-copy {
  grid-area: copy;
}

.about-page .creator-copy h2 {
  margin-bottom: 18px;
}

.about-page .creator-copy p {
  margin-bottom: 14px;
}

.about-page .creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.about-page .creator-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  color: var(--about-ink);
  border: 1px solid var(--about-line);
  font-size: .8rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.about-page .creator-links a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.about-page .creator-links a:hover,
.about-page .creator-links a:focus-visible {
  background: var(--about-ink);
  color: var(--about-paper);
}

/* ── Featured Links (website preview / platform profile / YouTube) ──────────── */
/* Sits in the .creator grid's "links" area, directly under .creator-stamp
   (see .creator's grid-template-areas above) — a single narrow column at
   this width, so the 2-column website/profile+youtube layout that made
   sense spanning the old full-width slot would be too cramped here. */
.about-page .featured-links {
  grid-area: links;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-page .featured-link-card {
  display: flex;
  color: var(--about-ink);
  text-decoration: none;
  background: var(--about-card);
  border: 1px solid var(--about-line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}

.about-page .featured-link-card:hover,
.about-page .featured-link-card:focus-visible {
  border-color: var(--about-coral);
  
}

/* Website — real link-unfurl style card (thumbnail + domain + title + desc) */
.about-page .featured-link-website {
  flex-direction: column;
}

.about-page .featured-link-website-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  background-color: var(--about-highlight-bg);
  background-image:
    linear-gradient(135deg, color-mix(in srgb, var(--about-coral) 22%, transparent), transparent 60%),
    url('/assets/images/portfolio-thumbnail.jpg');
  background-position: center 20%;
  background-size: cover;
}

.about-page .featured-link-website-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-page .featured-link-website-domain {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--about-muted);
  font-size: .72rem;
  direction: ltr;
  text-align: right;
}

.about-page .featured-link-website-domain svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.about-page .featured-link-website-title {
  font-size: .95rem;
  line-height: 1.4;
}

.about-page .featured-link-website-desc {
  color: var(--about-muted);
  font-size: .8rem;
  line-height: 1.6;
}

/* Platform profile — live identity mini-card, populated by about-stats.js
   from GET /api/admin?handle=belalamrofficial */
.about-page .featured-link-profile {
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.about-page .featured-link-profile-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--about-highlight-bg);
  color: var(--about-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-page .featured-link-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page .featured-link-profile-avatar-default {
  width: 22px;
  height: 22px;
}

.about-page .featured-link-profile-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-page .featured-link-profile-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-page .featured-link-profile-name {
  unicode-bidi: plaintext;
  /* truncate by the name's own direction */
  text-align: start;
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-page .featured-link-profile-level {
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--about-coral);
  color: #fff9ef;
  font-size: .66rem;
  font-weight: 700;
}

.about-page .featured-link-profile-handle {
  color: var(--about-muted);
  font-size: .72rem;
  direction: ltr;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-page .featured-link-profile-stats {
  color: var(--about-muted);
  font-size: .72rem;
}

.about-page .featured-link-profile-stats:empty {
  display: none;
}

/* YouTube — brand-colored card, distinct from the neutral pills/cards */
.about-page .featured-link-youtube {
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

.about-page .featured-link-youtube:hover,
.about-page .featured-link-youtube:focus-visible {
  border-color: #fff;
  background: #e00000;
}

.about-page .featured-link-youtube-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}

.about-page .featured-link-youtube-icon svg {
  width: 30px;
  height: 30px;
}

/* Real channel thumbnail. */
.about-page .featured-link-youtube-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-page .featured-link-youtube-body strong {
  font-size: .88rem;
}

.about-page .featured-link-youtube-body span {
  font-size: .74rem;
  opacity: .85;
}

.about-page .featured-link-youtube-cta {
  flex-shrink: 0;
  opacity: .85;
}

.about-page .featured-link-youtube-cta svg {
  width: 18px;
  height: 18px;
}

/* ── Creator Contact Card ─────────────────────────────────────────────────── */
.about-page .creator-contact-card {
  margin-top: 32px;
  padding: 24px;
  background: var(--about-card);
  border: 1px solid var(--about-line);
  border-radius: 14px;
}

.about-page .creator-contact-header h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--about-ink);
}

.about-page .creator-contact-header p {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--about-muted);
}

.about-page .creator-contact-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-page .creator-contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--about-line);
  border-radius: 10px;
  background: var(--about-paper);
  color: var(--about-ink);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.about-page .creator-contact-btn:hover {
  
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-page .creator-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

.about-page .creator-contact-btn.contact-whatsapp .creator-contact-icon {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
}

.about-page .creator-contact-btn.contact-whatsapp:hover {
  border-color: #25d366;
}

.about-page .creator-contact-btn.contact-telegram .creator-contact-icon {
  background: linear-gradient(135deg, #2ca5e0 0%, #1a7fb5 100%);
  color: #fff;
}

.about-page .creator-contact-btn.contact-telegram:hover {
  border-color: #2ca5e0;
}

.about-page .creator-contact-btn.contact-email .creator-contact-icon {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
}

.about-page .creator-contact-btn.contact-email:hover {
  border-color: #6366f1;
}

.about-page .creator-contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-page .creator-contact-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--about-ink);
}

.about-page .creator-contact-text small {
  font-size: 0.78rem;
  color: var(--about-muted);
  direction: ltr;
  text-align: right;
}

.about-page .about-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  color: var(--about-muted);
  font-size: .78rem;
}

@media (max-width: 900px) {
  .about-page .page-wrapper {
    padding-inline: 24px;
  }

  .about-page .docs-switcher {
    left: calc(var(--sidebar-collapsed-width) + 24px);
  }

  .about-page .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-page .hero-note {
    max-width: 360px;
  }
}

@media (max-width: 680px) {
  .about-page .page-wrapper {
    padding: 34px 0px 100px;
  }

  .about-page .docs-switcher {
    left: 0;
  }

  .about-page .logo-lockup {
    margin-bottom: 36px;
  }

  .about-page h1 {
    font-size: 2.8rem;
  }

  .about-page .hero-grid {
    padding: 48px 0 56px;
  }

  .about-page .about-section {
    padding: 56px 0;
  }

  .about-page .about-section-heading,
  .about-page .origin-copy {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-page .creator {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stamp"
      "links"
      "copy";
    gap: 20px;
  }

  .about-page .principles,
  .about-page .flow {
    grid-template-columns: 1fr;
  }

  .about-page .platform-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-page .principle:nth-child(2) {
    transform: none;
  }

  .about-page .flow-step,
  .about-page .flow-step:last-child {
    min-height: auto;
    border-left: 0;
    border-bottom: 1px solid var(--about-line);
  }

  .about-page .flow-step:last-child {
    border-bottom: 0;
  }

  .about-page .flow-step b {
    margin-bottom: 14px;
  }

  .about-page .creator-stamp {
    max-width: 300px;
  }

  .about-page .about-footer {
    flex-direction: column;
  }
}

html[data-motion="reduced"] {

  .about-page .principle:nth-child(2),
  .about-page .creator-stamp {
    transform: none;
  }
}

/* Telegram showcase section */
.telegram-showcase-section .about-telegram-container {
  display: flex;
  justify-content: center;
  padding-block: 8px;
}

.telegram-kicker {
  color: #24A1DE;
}

@media (max-width: 480px) {
  .telegram-showcase-section .about-telegram-container {
    padding-inline: 0;
  }
}
