/* ChartVoyant features — product layout for /features/.
   Loaded after pages.css. Scoped to body.feat so Insights stays as it is.
   pages.css is cached for a week; this file is the cache-busted layer. */

body.feat{
  background:#fff;
}
body.feat .hero{
  background:
    radial-gradient(90% 120% at 100% -20%, rgba(111,214,255,.2), transparent 52%),
    linear-gradient(165deg, #00263c 0%, #013a5c 46%, #00568B 130%);
  padding:68px 0 78px;
}
body.feat .hero .container{max-width:1120px}
body.feat .hero h1{
  max-width:none;
  font-weight:600;
  font-size:clamp(2.35rem, 4.6vw, 3.55rem);
  line-height:1.04;
  letter-spacing:-.034em;
}
body.feat .hero h1 .t-light{
  display:block;
  font-weight:300;
  letter-spacing:-.03em;
}
body.feat .hero p.lede{
  max-width:46ch;
  font-size:clamp(1.05rem, 1.7vw, 1.2rem);
  line-height:1.55;
  color:#d5e6f2;
}
body.feat .hero .note{max-width:46ch}

/* Path in the eyebrow: Features / Documentation */
body.feat .hero .eyebrow a{
  color:#8FC5E8;
  text-decoration:none;
}
body.feat .hero .eyebrow a:hover{color:#fff;text-decoration:none}
body.feat .hero .eyebrow .sep{
  display:inline-block;
  margin:0 .45em;
  color:rgba(143,197,232,.55);
  font-weight:500;
}

/* Current section in the bar. Links stay visible on a phone — the shared
   stylesheet hides them under 720px, which left these pages as logo + button. */
body.feat .nav-links a[aria-current="page"]{
  color:#fff;
  box-shadow:inset 0 -2px 0 #8FC5E8;
}
@media (max-width:720px){
  body.feat .nav .container{
    height:auto;
    flex-wrap:wrap;
    align-items:center;
    padding-top:12px;
    row-gap:8px;
    min-width:0;
  }
  body.feat .nav-logo{margin-right:auto}
  body.feat .nav-links{
    display:flex;
    order:3;
    flex:1 0 100%;
    min-width:0;
    max-width:100%;
    gap:18px;
    overflow-x:auto;
    padding:2px 2px 12px;
    scrollbar-width:none;
    -webkit-mask-image:linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
    mask-image:linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
  }
  body.feat .nav-links::-webkit-scrollbar{display:none}
  body.feat .nav-links a{white-space:nowrap;font-size:.84rem}
}

/* Stats read as facts, not a blog's left-border stack. */
body.feat .hero .stats{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:28px;
}
body.feat .hero .stats .stat{
  border:1px solid rgba(255,255,255,.16);
  border-left:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  border-radius:14px;
  padding:14px 14px 13px;
}
body.feat .hero .stats .stat b{
  font-size:1.05rem;
  font-weight:600;
  letter-spacing:-.015em;
  line-height:1.25;
  overflow-wrap:break-word;
}
body.feat .hero .stats .stat span{font-size:.84rem;margin-top:6px}
@media (max-width:800px){
  body.feat .hero .stats{grid-template-columns:1fr}
}

/* ---- Hub ---- */
body.feat .hero-split{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(280px, .95fr);
  gap:clamp(28px, 4vw, 56px);
  align-items:center;
}
body.feat .hero-jump{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}
body.feat .hero-jump a{
  color:#e7f3fa;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  padding:6px 12px;
  font-size:.84rem;
  font-weight:600;
  text-decoration:none;
}
body.feat .hero-jump a:hover{
  background:rgba(255,255,255,.1);
  text-decoration:none;
  color:#fff;
}
body.feat .hero-frame{
  background:#071926;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 28px 70px rgba(0, 10, 22, .38);
}
body.feat .hero-frame img{
  display:block;
  width:100%;
  height:300px;
  max-width:100%;
  object-fit:cover;
  object-position:left top;
  background:#0e2433;
}
@media (max-width:860px){
  body.feat .hero-split{grid-template-columns:minmax(0, 1fr)}
  body.feat .hero-frame{order:2;min-width:0}
  body.feat .hero-frame img{height:210px;max-width:100%}
}

body.feat .feat-groups{padding:36px 0 24px}
body.feat .feat-groups > .container{max-width:1120px}
body.feat .feat-group + .feat-group{margin-top:46px}
body.feat .feat-group h2{
  display:flex;
  align-items:baseline;
  gap:12px;
  margin-bottom:6px;
}
body.feat .feat-group h2 .idx{
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--cv-blue);
}
body.feat .feat-group .sub{margin-bottom:16px}

body.feat .feat-group .post-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-top:0;
}
body.feat .post,
body.feat .post .media{min-width:0}
body.feat .post{
  padding:0;
  overflow:hidden;
  border-radius:16px;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
body.feat .post:hover{transform:translateY(-2px)}
body.feat .post .media{
  display:block;
  aspect-ratio:16 / 10;
  background:#0e2433;
  overflow:hidden;
  border-bottom:1px solid var(--cv-mist);
}
body.feat .post .media img{
  width:100%;
  height:100%;
  max-width:100%;
  object-fit:cover;
  object-position:left top;
  display:block;
}
body.feat .post .media svg{display:block;width:100%;height:100%}
body.feat .post .body{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:16px 18px 18px;
}
body.feat .post .more{
  margin-top:auto;
  padding-top:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
body.feat .post .more svg{width:15px;height:15px;display:block}
@media (max-width:980px){
  body.feat .feat-group .post-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
}
@media (max-width:640px){
  body.feat .feat-group .post-grid{grid-template-columns:minmax(0, 1fr)}
}

/* ---- Detail: the screen sits on the page, then the writing ---- */
body.feat .feat-stage{
  position:relative;
  z-index:1;
  margin-top:-40px;
  padding:0 0 8px;
}
body.feat .feat-stage .container{max-width:1120px}
body.feat .shot-row{display:grid;gap:20px;justify-items:center}
body.feat figure.shot{width:100%}
body.feat figure.shot.shot-diagram{width:min(880px, 100%)}
body.feat figure.shot{
  margin:0;
  border:0;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 22px 55px rgba(0, 32, 56, .16);
}
body.feat figure.shot img{
  display:block;
  width:100%;
  height:auto;
  background:#e7eef3;
}
body.feat figure.shot.shot-diagram{background:#e7f0f6}
body.feat figure.shot .diagram svg{display:block;width:100%;height:auto}
body.feat .article-body figure.shot{margin:22px 0}
body.feat figure.shot figcaption{
  font-size:.86rem;
  line-height:1.45;
  color:var(--cv-slate);
  padding:12px 16px 14px;
  background:#f7fbfd;
  border-top:1px solid var(--cv-mist);
}

body.feat .chrome{
  display:flex;
  align-items:center;
  gap:10px;
  height:40px;
  padding:0 14px;
  background:#123044;
  color:rgba(242,248,252,.78);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.01em;
}
body.feat .dots{display:inline-flex;gap:6px}
body.feat .dots span{
  width:8px;height:8px;border-radius:50%;
  background:rgba(255,255,255,.28);
}
body.feat .dots span:first-child{background:#6FD6FF}

body.feat .feat-how{padding:28px 0 0}
body.feat .feat-how .container{max-width:1120px}
body.feat .how-label{
  margin:0 0 12px;
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--cv-slate);
}
body.feat .feat-steps{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}
body.feat .feat-steps li{
  background:#fff;
  border:1px solid var(--cv-mist);
  border-radius:16px;
  padding:16px 16px 18px;
  box-shadow:0 1px 2px rgba(0,42,69,.04);
}
body.feat .feat-steps b{
  display:block;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.14em;
  color:var(--cv-blue);
  margin-bottom:8px;
}
body.feat .feat-steps strong{
  display:block;
  color:var(--cv-blue-deep);
  font-size:1.02rem;
  font-weight:600;
  letter-spacing:-.015em;
  margin-bottom:4px;
}
body.feat .feat-steps span{
  display:block;
  color:var(--cv-slate);
  font-size:.92rem;
  line-height:1.45;
}
@media (max-width:800px){
  body.feat .feat-steps{grid-template-columns:1fr}
}

body.feat .article{padding-top:36px}
body.feat .article .container{max-width:740px}
body.feat .callout{
  background:var(--cv-ice);
  border:0;
  border-left:4px solid var(--cv-blue);
  border-radius:0 14px 14px 0;
  padding:18px 20px;
}
body.feat .callout h3{
  text-transform:none;
  letter-spacing:-.01em;
  font-size:1rem;
  color:var(--cv-blue-deep);
}

body.feat .xlink{border-radius:16px;padding:20px 20px 18px}
body.feat section > .container{max-width:1120px}

@media (prefers-reduced-motion: reduce){
  body.feat .post,
  body.feat .post:hover{transition:none;transform:none}
}
