/* =========================================================
   UTECH Single Article V3
   Compact first viewport + single-column editorial body
   ========================================================= */

.single-article-page{
  background:var(--bg);
  color:var(--text);
}

.single-article-page svg{
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* FIRST VIEW */
.article-first-view{
  padding:calc(var(--header-h) + 24px) 0 24px;
  background:
    radial-gradient(circle at 84% 15%,rgba(47,157,195,.06),transparent 28%),
    var(--surface);
  border-bottom:1px solid var(--line);
}

.article-first-view__inner{
  max-width:1260px;
  padding-inline-start:clamp(42px,5.8vw,100px);
  padding-inline-end:clamp(42px,5.8vw,100px);
}

.article-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:13px;
  color:var(--muted);
  font-size:9.9px;
}

.article-breadcrumb a{color:var(--muted)}
.article-breadcrumb a:hover{color:var(--blue)}

.article-heading{
  max-width:1040px;
  margin-bottom:19px;
}

.article-category{
  display:inline-flex;
  margin-bottom:7px;
  color:var(--blue);
  font-size:9.9px;
  font-weight:700;
}

.article-heading h1{
  margin:0 0 8px;
  color:var(--text);
  font-size:clamp(29px,3.25vw,43px);
  line-height:1.62;
  font-weight:700;
  letter-spacing:-.3px;
}

.article-heading p{
  max-width:900px;
  margin:0;
  color:var(--muted);
  font-size:12.4px;
  line-height:2;
}

.article-featured{
  width:100%;
  height:clamp(245px,28vw,345px);
  margin:0;
  overflow:hidden;
  border-radius:15px;
  background:var(--surface-2);
  box-shadow:0 15px 46px rgba(18,25,31,.07);
}

.article-featured img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

html[data-theme="dark"] .article-featured{
  box-shadow:none;
}

/* INFO STRIP UNDER IMAGE */
.article-info-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  min-height:58px;
  padding:10px 2px 0;
}

.article-info-bar__meta{
  display:flex;
  align-items:center;
  gap:0;
  min-width:0;
}

.article-info-item{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:126px;
  padding:0 16px;
}

.article-info-item:first-child{
  padding-right:0;
}

.article-info-item + .article-info-item::before{
  content:"";
  position:absolute;
  right:0;
  top:5px;
  bottom:5px;
  width:1px;
  background:var(--line);
}

.article-info-item small{
  color:var(--muted);
  font-size:8.8px;
}

.article-info-item strong{
  color:var(--text);
  font-size:10.5px;
  font-weight:700;
}

.article-share{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}

.article-share__label{
  margin-left:2px;
  color:var(--muted);
  font-size:8.9px;
}

.article-share button,
.article-share a{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:31px;
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--bg);
  color:var(--muted);
  font:inherit;
  font-size:9.2px;
  cursor:pointer;
  transition:border-color .2s ease,color .2s ease,background .2s ease;
}

.article-share button:hover,
.article-share a:hover{
  border-color:var(--text);
  color:var(--text);
}

.article-share svg{
  width:13px;
  height:13px;
}

.article-share__status{
  position:absolute;
  left:0;
  top:calc(100% + 4px);
  color:var(--blue);
  font-size:8.8px;
  white-space:nowrap;
}

/* CONTENT — STRICTLY ONE COLUMN */
.article-content-section{
  padding:62px 0 86px;
}

.article-content-shell{
  max-width:1180px;
  padding-inline-start:clamp(54px,7.2vw,132px);
  padding-inline-end:clamp(54px,7.2vw,132px);
}

.article-prose{
  width:100%;
  max-width:860px;
  margin:0 auto;
}

.article-prose p,
.article-prose li{
  color:var(--muted);
  font-size:13.2px;
  line-height:2.28;
}

.article-prose p{
  margin:0 0 18px;
}

.article-prose__intro{
  margin-bottom:34px!important;
  color:var(--text)!important;
  font-size:14px!important;
  line-height:2.22!important;
}

.article-prose h2{
  margin:45px 0 14px;
  color:var(--text);
  font-size:25px;
  line-height:1.85;
  font-weight:700;
}

.article-prose h3{
  margin:29px 0 10px;
  color:var(--text);
  font-size:16.5px;
  line-height:1.9;
}

.article-prose strong{
  color:var(--text);
}

.article-prose ul,
.article-prose ol{
  margin:16px 0 26px;
  padding-right:24px;
}

.article-prose li{
  margin-bottom:6px;
}

.article-prose blockquote{
  margin:34px 0;
  padding:23px 25px 22px;
  border:0;
  border-right:3px solid var(--blue);
  border-radius:0 11px 11px 0;
  background:var(--surface);
  color:var(--text);
  font-size:14px;
  line-height:2.15;
  font-weight:700;
}

.article-inline-image{
  margin:38px 0 40px;
}

.article-inline-image img{
  display:block;
  width:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:14px;
  background:var(--surface-2);
}

.article-inline-image figcaption{
  margin-top:8px;
  color:var(--muted);
  font-size:9.6px;
  line-height:1.9;
}

.article-note{
  margin:32px 0;
  padding:19px 21px;
  border:1px solid var(--line);
  border-radius:11px;
  background:
    linear-gradient(135deg,rgba(47,157,195,.045),transparent 45%),
    var(--surface);
}

.article-note strong{
  display:block;
  margin-bottom:4px;
  color:var(--blue);
  font-size:10.8px;
}

.article-note p{
  margin:0;
  font-size:12.2px;
}

.article-end-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  margin-top:48px;
  padding:25px 27px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
}

.article-end-cta>div{
  max-width:600px;
}

.article-end-cta>div>span{
  display:block;
  margin-bottom:3px;
  color:var(--blue);
  font-size:9.3px;
  font-weight:700;
}

.article-end-cta h3{
  margin:0 0 5px;
  color:var(--text);
  font-size:17px;
}

.article-end-cta p{
  margin:0;
  font-size:11.3px;
  line-height:1.95;
}

.article-end-cta .button{
  flex:0 0 auto;
}

/* RELATED */
.related-articles{
  padding-top:70px;
  padding-bottom:84px;
  background:var(--surface);
  border-top:1px solid var(--line);
}

.related-articles__heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
}

.related-articles__heading h2{
  margin:0 0 4px;
  color:var(--text);
  font-size:24px;
}

.related-articles__heading p{
  margin:0;
  color:var(--muted);
  font-size:10.8px;
}

.related-articles__heading>a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--text);
  font-size:10.4px;
  font-weight:700;
}

.related-articles__heading>a span{color:var(--blue)}
.related-articles__heading>a:hover{color:var(--blue)}

.related-articles__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.related-card{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--bg);
  transition:transform .25s ease;
}

.related-card:hover{
  transform:translateY(-3px);
}

.related-card__image{
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--surface-2);
}

.related-card__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}

.related-card:hover .related-card__image img{
  transform:scale(1.03);
}

.related-card__body{
  padding:15px 16px 17px;
}

.related-card__meta{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:7px;
  font-size:9.3px;
}

.related-card__meta span{
  color:var(--blue);
  font-weight:700;
}

.related-card__meta time{
  color:var(--muted);
}

.related-card__meta time::before{
  content:"•";
  margin-left:7px;
  color:var(--line-strong);
}

.related-card h3{
  margin:0;
  color:var(--text);
  font-size:13.5px;
  line-height:1.9;
}

.related-card h3 a{
  color:inherit;
}

@media(max-width:940px){
  .article-info-bar{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
    padding-top:12px;
  }

  .related-articles__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .related-card:last-child{
    display:none;
  }
}

@media(max-width:760px){
  .article-first-view{
    padding:calc(var(--header-h) + 20px) 0 18px;
  }

  .article-first-view__inner,
  .article-content-shell{
    padding-inline-start:20px;
    padding-inline-end:20px;
  }

  .article-breadcrumb{
    margin-bottom:11px;
  }

  .article-heading{
    margin-bottom:15px;
  }

  .article-heading h1{
    font-size:27px;
    line-height:1.72;
  }

  .article-heading p{
    font-size:11.8px;
    line-height:1.95;
  }

  .article-featured{
    height:220px;
    border-radius:13px;
  }

  .article-info-bar{
    min-height:auto;
  }

  .article-info-bar__meta{
    width:100%;
    overflow-x:auto;
    scrollbar-width:none;
  }

  .article-info-bar__meta::-webkit-scrollbar{
    display:none;
  }

  .article-info-item{
    flex:0 0 auto;
    min-width:105px;
    padding-inline:12px;
  }

  .article-share{
    width:100%;
    flex-wrap:wrap;
  }

  .article-content-section{
    padding-top:45px;
    padding-bottom:64px;
  }

  .article-prose p,
  .article-prose li{
    font-size:12.5px;
    line-height:2.2;
  }

  .article-prose__intro{
    font-size:13.3px!important;
  }

  .article-prose h2{
    margin-top:36px;
    font-size:22.5px;
  }

  .article-prose h3{
    font-size:15.5px;
  }

  .article-prose blockquote{
    margin:28px 0;
    padding:19px 19px;
    font-size:13px;
  }

  .article-inline-image{
    margin:30px 0 33px;
  }

  .article-inline-image img{
    max-height:300px;
    border-radius:12px;
  }

  .article-end-cta{
    align-items:flex-start;
    flex-direction:column;
    padding:21px 19px;
  }

  .article-end-cta .button{
    width:100%;
    justify-content:center;
  }

  .related-articles{
    padding-top:54px;
    padding-bottom:64px;
  }

  .related-articles__grid{
    grid-template-columns:1fr;
    gap:13px;
  }

  .related-card:last-child{
    display:block;
  }

  .related-articles__heading{
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
  }
}
