.detail-body {
  --accent: #6f8df0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eaf8fc 0%, #f3fafb 42%, #edf7f8 100%);
}

.detail-body::before { opacity: .14; }
.detail-body.room-claude { --accent: #e88d78; }
.detail-body.room-cursor { --accent: #657d94; }
.detail-body.room-midjourney { --accent: #8a7ddd; }
.detail-body.room-zapier { --accent: #ed9d57; }

.detail-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 30px 24px 54px;
}

.floor-neighbor-nav { display: none; }

@media (min-width: 1651px) {
  .floor-neighbor-nav {
    position: fixed;
    z-index: 4;
    top: 50%;
    left: calc(50% - 760px);
    transform: translateY(-50%);
    display: grid;
    width: 180px;
    padding: 0 10px;
    border: 1px solid #c7d8e1;
    border-radius: 16px;
    background: #fffdf2;
    box-shadow: 0 4px 16px rgba(30, 65, 100, .06);
  }

  .floor-neighbor-panel-label { padding: 13px 0 10px; border-bottom: 1px solid #e3e9e8; color: #718697; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
  .floor-neighbor-card {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 14px 0;
    color: #244d72;
    text-decoration: none;
    transition: color .16s ease;
  }

  .floor-neighbor-card + .floor-neighbor-card { border-top: 1px solid #e3e9e8; }
  .floor-neighbor-control { display: grid; flex: 0 0 32px; justify-items: center; gap: 6px; }
  .floor-neighbor-info { display: grid; flex: 1; min-width: 0; gap: 6px; }
  .floor-neighbor-product { display: flex; align-items: center; gap: 7px; min-width: 0; }
  .floor-neighbor-product img { display: block; flex: 0 0 24px; width: 24px; height: 24px; object-fit: contain; }
  .floor-neighbor-product i { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; overflow: hidden; border-radius: 6px; background: #f1f6f8; font-size: 13px; font-style: normal; }
  .floor-neighbor-product strong { min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.35; }
  .floor-neighbor-tagline { display: -webkit-box; overflow: hidden; color: #657e91; font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

  .floor-neighbor-button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #b7cbd7;
    border-radius: 50%;
    background: #f1f7f9;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  }

  .floor-neighbor-button svg { width: 16px; height: 16px; fill: currentColor; }
  .floor-neighbor-floor { color: #718697; font-size: 9px; font-weight: 600; line-height: 1; }
  .floor-neighbor-card:hover .floor-neighbor-button,
  .floor-neighbor-card:focus-visible .floor-neighbor-button {
    border-color: #d1ac50;
    background: #fff0b2;
    box-shadow: 0 0 0 3px rgba(245, 203, 101, .15);
  }
  .floor-neighbor-card:active .floor-neighbor-button { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(30, 65, 100, .12); }
  .floor-neighbor-card:focus-visible { outline: 2px solid #f0c365; outline-offset: 3px; border-radius: 8px; }
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
  color: #8496a5;
  font-size: 11px;
}

.article-breadcrumb a { color: #426688; font-weight: 700; }
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb [aria-current="page"] { color: #526b80; font-weight: 600; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 22px;
}

.detail-primary,
.detail-aside { display: grid; gap: 18px; min-width: 0; }
.detail-aside { position: sticky; top: 84px; }

.detail-card {
  min-width: 0;
  border: 2px solid #23466f;
  border-radius: 19px;
  background: #fffdf2;
  box-shadow: 5px 6px 0 rgba(30, 65, 100, .13);
}

.detail-hero { padding: 31px 34px 26px; }
.hero-heading-row { display: flex; align-items: center; gap: 19px; }

.hero-logo {
  display: grid;
  flex: 0 0 72px;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 2px solid #23466f;
  border-radius: 19px;
  background: color-mix(in srgb, var(--accent) 17%, #fffdf2);
  box-shadow: 3px 4px 0 rgba(30, 65, 100, .13);
  color: #23466f;
  font: 700 32px Georgia, "Songti SC", serif;
}

.hero-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-logo.hero-logo--image { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hero-logo.hero-logo--image img { object-fit: contain; }
.hero-title-block { flex: 1; min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }

.hero-category,
.featured-mark {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.hero-category { border: 1px solid #cbdde5; background: #f2f9fb; color: #54718a; }
.featured-mark { background: #fff0b2; color: #8a6c22; }

.hero-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin: 8px 0 5px; }

.hero-title-block h1 {
  max-width: 100%;
  margin: 0;
  color: #193f68;
  font: 700 clamp(29px, 4vw, 42px)/1.12 Georgia, "Songti SC", serif;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.article-lead { max-width: 680px; margin: 0; color: #637d91; font-size: 14px; font-weight: 600; line-height: 1.65; }

.hero-floor-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }

.hero-floor {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 67px;
  height: 67px;
  border: 2px solid #23466f;
  border-radius: 17px;
  background: #c6f0fa;
  box-shadow: 3px 4px 0 rgba(30, 65, 100, .13);
  color: #23466f;
  font: 700 20px Georgia, serif;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 25px 0 0 91px;
}

.article-visit {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 13px;
  min-height: 42px;
  padding: 9px 15px;
  border: 2px solid var(--outline);
  border-radius: 10px;
  background: #ffdc72;
  box-shadow: 3px 3px 0 var(--outline);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease;
}

.article-visit:hover { transform: translateY(-2px); box-shadow: 4px 5px 0 var(--outline); }
.article-visit span { font-size: 15px; }

.detail-section { padding: 24px 28px 27px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-kicker { display: block; margin-bottom: 5px; color: #96a5ad; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.section-heading h2, .aside-heading h2 { margin: 0; color: #244d72; font: 700 19px Georgia, "Songti SC", serif; }
.section-count { color: #8093a2; font-size: 10px; }

.product-description { width: 100%; margin: 0; padding: 18px 20px; border: 2px solid #23466f; border-radius: 12px; background: #f2f9fb; color: #4d667a; font-size: 13px; line-height: 1.95; white-space: pre-line; overflow-wrap: anywhere; }

.screenshot-carousel { position: relative; }
.article-gallery { display: flex; gap: 13px; overflow-x: auto; padding: 1px 2px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.article-gallery::-webkit-scrollbar { display: none; }
.screenshot-slide { display: block; flex: 0 0 78%; aspect-ratio: 1.65 / 1; overflow: hidden; margin: 0; padding: 0; appearance: none; border: 1px solid #d7e5e9; border-radius: 14px; background: #f1f8fa; color: inherit; cursor: zoom-in; scroll-snap-align: start; }
.screenshot-slide:focus-visible { outline: 3px solid #f0c365; outline-offset: 3px; }
.screenshot-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-gallery--single .screenshot-slide { flex-basis: 100%; }
.screenshot-arrow { position: absolute; z-index: 1; top: 50%; display: grid; width: 38px; height: 38px; place-items: center; padding: 0 0 3px; transform: translateY(-50%); border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 12px rgba(25, 45, 70, .16); color: #304e72; font: 400 29px/1 Arial, sans-serif; cursor: pointer; }
.screenshot-arrow:hover { background: #fff5c8; }
.screenshot-arrow:focus-visible,.screenshot-dot:focus-visible { outline: 3px solid #f0c365; outline-offset: 2px; }
.screenshot-arrow--previous { left: 12px; }
.screenshot-arrow--next { right: 12px; }
.screenshot-pagination { display: flex; justify-content: center; gap: 8px; padding-top: 11px; }
.screenshot-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #d5dbe2; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.screenshot-dot[aria-current="true"] { background: #ee806d; transform: scale(1.12); }


.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a, .platform-list li {
  padding: 6px 10px;
  border: 1px solid #d5e4e9;
  border-radius: 20px;
  background: #f1f8fa;
  color: #58758d;
  font-size: 10px;
  font-weight: 600;
}
.article-tags a { text-decoration: none; }
.article-tags a:hover { border-color: #9dc4d5; background: #e5f4f9; }
.article-tags a:focus-visible { outline: 3px solid #f0c365; outline-offset: 2px; }

.creator-works-section { padding: 20px; }
.creator-works-section .section-heading { margin-bottom: 12px; }
.creator-works-section .section-heading h2 { font-size: 17px; line-height: 1.25; }
.creator-works-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.creator-work-card { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px; border: 1px solid #d5e4e9; border-radius: 10px; background: #fffefa; color: inherit; text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.creator-work-card:hover { transform: translateY(-1px); border-color: #9dc4d5; background: #f7fbfb; }
.creator-work-card:focus-visible { outline: 3px solid #f0c365; outline-offset: 2px; }
.creator-work-logo { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; overflow: hidden; border: 1px solid #d5e4e9; border-radius: 9px; background: #f1f8fa; color: #476784; font: 700 15px Georgia, "Songti SC", serif; }
.creator-work-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.creator-work-logo--image { overflow: visible; border: 0; border-radius: 0; background: transparent; }
.creator-work-logo--image img { object-fit: contain; }
.creator-work-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.creator-work-copy strong { overflow: hidden; color: #244d72; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.creator-work-copy small { display: -webkit-box; overflow: hidden; color: #718697; font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.creator-work-arrow { flex: none; color: #8298a8; font-size: 12px; }

.facts-card { padding: 22px 23px 15px; }
.aside-heading { margin-bottom: 12px; }
.aside-heading .section-kicker { margin-bottom: 4px; }
.facts-card dl { margin: 0; }
.fact-row { padding: 11px 0; border-top: 1px solid #e5ecee; }
.fact-row dt { margin-bottom: 5px; color: #8999a5; font-size: 9px; }
.x-brand-icon { display: inline-block; width: 10px; height: 10px; margin-left: 1px; fill: currentColor; vertical-align: -1px; }
.fact-row dd { margin: 0; color: #344f67; font-size: 11px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.fact-row dd a { color: #3e6687; }
.fact-row dd a:hover { color: #294e73; text-decoration: underline; text-underline-offset: 2px; }
.fact-row dd a span { white-space: nowrap; }
.fact-website dd { font-size: 10px; }

.platform-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.platform-list li { padding: 4px 8px; font-size: 9px; }
.featured-value { color: #9a7620; }

@media (max-width: 920px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 640px) {
  .detail-shell { padding: 20px 14px 38px; }
  .article-breadcrumb { gap: 7px; margin-bottom: 14px; font-size: 10px; }
  .detail-primary, .detail-aside { gap: 13px; }
  .detail-card { border-radius: 16px; box-shadow: 3px 4px 0 rgba(30, 65, 100, .12); }
  .detail-hero { padding: 22px 19px 20px; }
  .hero-heading-row { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .hero-title-block { flex-basis: calc(100% - 66px); }
  .hero-floor-actions { margin-left: auto; gap: 10px; }
  .hero-logo { flex-basis: 54px; width: 54px; height: 54px; border-radius: 15px; font-size: 25px; }
  .hero-name-row { gap: 10px 12px; margin-top: 7px; }
  .hero-title-block h1 { font-size: clamp(27px, 8vw, 35px); }
  .article-lead { font-size: 12px; }
  .hero-floor { width: 53px; height: 53px; border-radius: 14px; font-size: 15px; }
  .hero-actions { gap: 9px; margin: 19px 0 0; }
  .detail-section { padding: 20px 19px 22px; }
  .section-heading h2, .aside-heading h2 { font-size: 17px; }
  .product-description { max-width: 100%; padding: 14px 16px; font-size: 12px; }
  .article-gallery { gap: 9px; }
  .screenshot-slide { flex-basis: 92%; border-radius: 12px; }
  .article-gallery--single .screenshot-slide { flex-basis: 100%; }
  .screenshot-arrow { width: 34px; height: 34px; }
  .screenshot-arrow--previous { left: 9px; }
  .screenshot-arrow--next { right: 9px; }
  .detail-aside { grid-template-columns: minmax(0, 1fr); }
  .facts-card { padding: 19px 19px 12px; }
}

@media (max-width: 380px) {
  .detail-shell { padding-inline: 10px; }
}
