/* TQ 5.16 - directory profile + blog carousel */

/* Directory company profile */
.tq516-directory-profile{background:#f8fafc}
.tq516-profile-hero{
  padding:34px 0 30px;
  border-bottom:1px solid #e2e8f0;
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)
}
.tq516-profile-hero-grid{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-top:24px
}
.tq516-profile-brand{
  display:flex;
  min-width:0;
  align-items:center;
  gap:22px
}
.tq516-logo-wrap,
.tq516-logo-fallback{
  width:112px;
  height:112px;
  flex:0 0 112px;
  border:1px solid #e2e8f0;
  border-radius:24px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.06)
}
.tq516-logo-wrap{
  display:grid;
  place-items:center;
  padding:12px
}
.tq516-logo-wrap img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:14px
}
.tq516-logo-fallback{
  display:grid;
  place-items:center;
  color:#1d4ed8;
  font-size:38px;
  font-weight:900
}
.tq516-profile-title{min-width:0}
.tq516-badges{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:10px
}
.tq516-source-badge,
.tq516-featured-badge{
  display:inline-flex;
  align-items:center;
  min-height:29px;
  padding:6px 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:850;
  letter-spacing:.055em
}
.tq516-source-badge{
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1d4ed8
}
.tq516-featured-badge{
  border:1px solid #fde68a;
  background:#fffbeb;
  color:#92400e
}
.tq516-profile-title h1{
  max-width:850px;
  margin:0;
  color:#0f172a;
  font-size:clamp(34px,4.6vw,58px);
  line-height:1.04;
  letter-spacing:-.045em;
  overflow-wrap:anywhere
}
.tq516-profile-subtitle{
  margin:12px 0 0;
  color:#64748b;
  font-size:14px;
  line-height:1.6
}
.tq516-hero-actions{
  display:flex;
  flex:0 0 auto;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:9px
}
.tq516-profile-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:28px;
  align-items:start;
  padding-top:34px;
  padding-bottom:34px
}
.tq516-profile-main{
  display:grid;
  min-width:0;
  gap:20px
}
.tq516-card{
  min-width:0;
  padding:28px;
  border:1px solid #e2e8f0;
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.035)
}
.tq516-card h2,
.tq516-quick-card h2{
  margin:6px 0 16px;
  color:#0f172a;
  font-size:24px;
  line-height:1.2;
  letter-spacing:-.03em;
  overflow-wrap:anywhere
}
.tq516-description{
  color:#334155;
  font-size:16px;
  line-height:1.8
}
.tq516-description p:last-child{margin-bottom:0}
.tq516-service-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.tq516-service-chips a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:9px 12px;
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:13px;
  font-weight:800;
  text-decoration:none
}
.tq516-service-chips a:hover{border-color:#93c5fd;background:#dbeafe}
.tq516-disclosure{
  margin:18px 0 0;
  padding:12px 14px;
  border:1px solid #fde68a;
  border-radius:14px;
  background:#fffbeb;
  color:#78350f;
  font-size:12px;
  line-height:1.6
}
.tq516-data-list,
.tq516-quick-card dl{
  display:grid;
  margin:0
}
.tq516-data-list>div,
.tq516-quick-card dl>div{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:16px;
  padding:13px 0;
  border-top:1px solid #eef2f7
}
.tq516-data-list>div:first-child,
.tq516-quick-card dl>div:first-child{border-top:0}
.tq516-data-list dt,
.tq516-quick-card dt{
  color:#64748b;
  font-size:12px;
  font-weight:750
}
.tq516-data-list dd,
.tq516-quick-card dd{
  min-width:0;
  margin:0;
  color:#0f172a;
  font-size:14px;
  font-weight:650;
  overflow-wrap:anywhere
}
.tq516-data-list a,
.tq516-quick-card a{
  color:#1d4ed8;
  text-decoration:none
}
.tq516-profile-sidebar{min-width:0}
.tq516-quick-card{
  position:sticky;
  top:calc(var(--tq-adminbar-offset,0px) + var(--tq-fixed-header-height,74px) + 20px);
  padding:22px;
  border:1px solid #dbe4ee;
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 32px rgba(15,23,42,.055)
}
.tq516-side-featured{
  display:inline-flex;
  margin:0 0 8px;
  padding:5px 8px;
  border:1px solid #fde68a;
  border-radius:999px;
  background:#fffbeb;
  color:#92400e;
  font-size:10px;
  font-weight:850;
  text-transform:uppercase
}
.tq516-quick-card dl>div{
  grid-template-columns:105px minmax(0,1fr);
  gap:10px
}
.tq516-side-actions{
  display:grid;
  gap:7px;
  margin-top:14px
}
.tq516-side-actions a{
  display:flex;
  min-height:42px;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border:1px solid #dbe4ee;
  border-radius:12px;
  font-size:12px;
  font-weight:800;
  text-align:center
}
.tq516-side-actions a:first-child{
  border-color:#2563eb;
  background:#2563eb;
  color:#fff
}
.tq516-contact-anchor{scroll-margin-top:110px}
.tq516-profile-contact .tq59-profile-contact{margin-top:0}
.tq516-profile-footnote{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  padding-top:0;
  padding-bottom:46px
}
.tq516-profile-footnote p{
  max-width:800px;
  margin:0;
  color:#64748b;
  font-size:12px;
  line-height:1.7
}
.tq516-profile-footnote a{
  flex:0 0 auto;
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
  text-decoration:none
}
.tq516-not-found{
  max-width:760px;
  margin:60px auto;
  padding:36px;
  border:1px solid #e2e8f0;
  border-radius:24px;
  background:#fff;
  text-align:center
}

/* Homepage blog carousel */
.tq516-blog-carousel{
  position:relative
}
.tq516-carousel-controls{
  display:flex;
  gap:8px;
  align-items:center
}
.tq516-carousel-btn{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid #dbe4ee;
  border-radius:13px;
  background:#fff;
  color:#0f172a;
  cursor:pointer;
  font-size:20px;
  box-shadow:0 6px 18px rgba(15,23,42,.045);
  transition:opacity .15s ease,transform .15s ease,border-color .15s ease
}
.tq516-carousel-btn:hover{transform:translateY(-1px);border-color:#94a3b8}
.tq516-carousel-btn:disabled{opacity:.35;cursor:default;transform:none}
.tq516-blog-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  margin:0 -4px;
  padding:4px 4px 18px;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent
}
.tq516-blog-track{
  display:flex;
  gap:18px
}
.tq516-blog-track>.blog-card{
  flex:0 0 calc((100% - 36px)/3);
  min-width:0;
  scroll-snap-align:start
}
.tq516-blog-track .blog-card h2{
  font-size:20px;
  line-height:1.25
}
.tq516-blog-track .blog-card-media{
  aspect-ratio:16/9
}

@media(max-width:1020px){
  .tq516-profile-grid{grid-template-columns:minmax(0,1fr) 300px}
  .tq516-blog-track>.blog-card{flex-basis:calc((100% - 18px)/2)}
}
@media(max-width:900px){
  .tq516-profile-hero-grid{align-items:flex-start;flex-direction:column}
  .tq516-hero-actions{justify-content:flex-start}
  .tq516-profile-grid{grid-template-columns:1fr}
  .tq516-quick-card{position:static;top:auto}
}
@media(max-width:640px){
  .tq516-profile-hero{padding:24px 0 22px}
  .tq516-profile-brand{align-items:flex-start;gap:14px}
  .tq516-logo-wrap,.tq516-logo-fallback{width:78px;height:78px;flex-basis:78px;border-radius:18px}
  .tq516-logo-fallback{font-size:28px}
  .tq516-profile-title h1{font-size:31px;line-height:1.08}
  .tq516-profile-hero-grid{gap:20px}
  .tq516-hero-actions{width:100%}
  .tq516-hero-actions .tq-btn{flex:1 1 100%;width:100%}
  .tq516-profile-grid{gap:16px;padding-top:20px}
  .tq516-card{padding:20px;border-radius:18px}
  .tq516-data-list>div,.tq516-quick-card dl>div{grid-template-columns:1fr;gap:4px}
  .tq516-profile-footnote{flex-direction:column;padding-bottom:32px}
  .tq516-blog-track{gap:12px}
  .tq516-blog-track>.blog-card{flex-basis:88%}
  .tq516-carousel-controls{gap:6px}
  .tq516-carousel-btn{width:40px;height:40px}
}
