/* TermBridge Site Shell v1.0
   Source: homepage V3.8 header/footer.
   Use for new pages first: /insights/ and /about/.
   Keep URLs clean: no .html navigation links.
*/
:root{
  --bg:#f8fafc;
  --surface:#fff;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --blue:#1d4ed8;
  --blue2:#0b63ce;
  --cyan:#38bdf8;
  --shadow:0 18px 45px rgba(15,23,42,.08);
  --radius:28px;
  --guide-color:#1d4ed8;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{overflow-x:hidden}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
}
a{text-decoration:none;color:inherit}
.container{width:min(1540px,calc(100% - 40px));margin:0 auto}
.content{width:min(1180px,calc(100% - 40px));margin:0 auto}

.topbar{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}
.nav{height:70px;display:flex;align-items:center;gap:26px}
.brand{display:flex;align-items:center;gap:12px;min-width:270px}
.brand-mark{width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,#0f172a,#0b63ce);color:#fff;display:grid;place-items:center;font-weight:950;letter-spacing:-.08em}
.brand-title{font-weight:920;font-size:20px;letter-spacing:-.035em}
.brand-sub{font-size:11px;color:var(--muted);font-weight:760;margin-top:2px}
.nav-links{display:flex;align-items:center;gap:24px;flex:1;justify-content:center;font-size:14px;font-weight:790;color:#334155;white-space:nowrap}
.nav-links a:hover,.nav-links a.active{color:var(--blue)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:999px;padding:13px 21px;font-weight:850;font-size:14px;line-height:1;transition:.2s;white-space:nowrap}
.btn:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,23,42,.13)}
.btn-primary{background:var(--blue);color:#fff}
.btn-ghost{border-color:#cbd5e1;color:#0f172a;background:#fff}
.btn-white{background:#fff;color:var(--blue)}

.site-footer{background:#fff;border-top:1px solid var(--line);padding:28px 0;color:var(--muted);font-size:14px}.site-footer .footer-wrap{width:min(1540px,calc(100% - 40px));margin:0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:28px;flex-wrap:wrap}.site-footer .footer-copy{max-width:760px;line-height:1.65}.site-footer .footer-copy strong{color:#334155;font-weight:900}.site-footer .footer-copy a{color:#0b63ce;font-weight:900;text-decoration:none}.site-footer .footer-links{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap;font-weight:760;color:#475569;white-space:nowrap;line-height:1.65;margin-left:auto}.site-footer .footer-links a{color:#475569;text-decoration:none}

/* Homepage V3.8 mobile navigation + component-ready header guard */
.mobile-toggle{
  display:none;
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  padding:0;
  margin-left:auto;
  color:var(--ink);
}
.mobile-toggle span{
  display:block;
  width:20px;
  height:2px;
  border-radius:999px;
  background:#0f172a;
  transition:transform .22s ease, opacity .22s ease;
}
.nav-menu{
  display:flex;
  align-items:center;
  gap:26px;
  flex:1;
  min-width:0;
}
.nav-cta{
  flex:0 0 auto;
}
.nav-open{
  overflow:hidden;
}
.nav-open .mobile-toggle span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.nav-open .mobile-toggle span:nth-child(2){
  opacity:0;
}
.nav-open .mobile-toggle span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}
@media(max-width:1050px){
  .nav{
    height:70px!important;
    min-height:70px!important;
    flex-wrap:nowrap!important;
    padding:0!important;
  }
  .brand{
    min-width:auto!important;
    flex:1 1 auto;
  }
  .mobile-toggle{
    display:inline-flex!important;
    position:relative;
    z-index:120;
  }
  .nav-menu{
    position:fixed;
    left:14px;
    right:14px;
    top:82px;
    z-index:110;
    display:grid!important;
    grid-template-columns:1fr;
    gap:18px;
    align-items:start;
    background:rgba(255,255,255,.98);
    border:1px solid var(--line);
    border-radius:24px;
    box-shadow:0 24px 70px rgba(15,23,42,.16);
    padding:22px;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-10px);
    transition:opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .nav-open .nav-menu{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
  }
  .nav-menu .nav-links{
    display:grid!important;
    grid-template-columns:1fr;
    gap:0;
    order:0!important;
    flex-basis:auto!important;
    justify-content:start!important;
    overflow:visible!important;
    padding-bottom:0!important;
    font-size:16px!important;
    width:100%;
  }
  .nav-menu .nav-links a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:48px;
    border-bottom:1px solid #eef2f7;
    color:#0f172a;
    font-size:16px;
    font-weight:850;
  }
  .nav-menu .nav-links a:last-child{
    border-bottom:0;
  }
  .nav-menu .nav-links a::after{
    content:"→";
    color:var(--blue);
    font-weight:950;
  }
  .nav-menu .nav-cta{
    display:flex!important;
    width:100%;
    min-height:48px;
    margin-top:2px;
  }
}
@media(max-width:760px){
  .nav{
    height:68px!important;
    min-height:68px!important;
  }
  .brand-mark{
    width:38px!important;
    height:38px!important;
    border-radius:12px!important;
  }
  .brand-title{
    font-size:19px!important;
  }
  .brand-sub{
    display:block!important;
    font-size:10.5px!important;
    max-width:190px;
  }
  .nav-menu{
    top:78px;
  }
}
@media(max-width:420px){
  .brand-sub{
    max-width:150px;
  }
  .nav-menu{
    left:10px;
    right:10px;
    padding:18px;
  }
}

/* Astro dynamic content pages: article, hub and tag styles only */
.hub-page,
.tag-page,
.insight-article-page {
  padding-top: 72px;
  padding-bottom: 96px;
}

.hub-page .insights-hero,
.tag-page .insights-hero,
.insight-article-page .insight-hero {
  max-width: 920px;
  margin-bottom: 42px;
}

.hub-page .page-title,
.tag-page .page-title,
.insight-article-page .page-title {
  max-width: 980px;
  margin-top: 14px;
  margin-bottom: 22px;
  color: #0f172a;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hub-page .lead,
.tag-page .lead,
.insight-article-page .lead {
  max-width: 900px;
  color: #64748b;
  font-size: 21px;
  line-height: 1.7;
}

.hub-page .eyebrow,
.tag-page .eyebrow,
.insight-article-page .eyebrow {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.16em;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hub-page .insight-list,
.tag-page .insight-list,
.insight-article-page .insight-list {
  display: grid;
  gap: 24px;
}

.hub-page .insight-card,
.tag-page .insight-card,
.insight-article-page .insight-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), #ffffff);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055);
  padding: 28px 30px;
}

.hub-page .insight-card::before,
.tag-page .insight-card::before,
.insight-article-page .insight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb, #38bdf8);
}

.hub-page .insight-card h2,
.hub-page .insight-card h3,
.tag-page .insight-card h2,
.tag-page .insight-card h3,
.insight-article-page .insight-card h2,
.insight-article-page .insight-card h3 {
  margin: 0 0 12px;
  color: #0f172a;
  line-height: 1.25;
}

.hub-page .insight-card h2,
.tag-page .insight-card h2,
.insight-article-page .insight-card h2 {
  font-size: 24px;
}

.hub-page .insight-card h3,
.tag-page .insight-card h3,
.insight-article-page .insight-card h3 {
  font-size: 21px;
}

.hub-page .insight-card h2 a,
.hub-page .insight-card h3 a,
.tag-page .insight-card h2 a,
.tag-page .insight-card h3 a,
.insight-article-page .insight-card h2 a,
.insight-article-page .insight-card h3 a {
  color: inherit;
  text-decoration: none;
}

.hub-page .insight-card .card-description,
.tag-page .insight-card .card-description,
.insight-article-page .insight-card .card-description {
  max-width: 880px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.hub-page .insight-card .tag-line,
.tag-page .insight-card .tag-line,
.insight-article-page .insight-card .tag-line {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.hub-page .insight-card .card-cta,
.tag-page .insight-card .card-cta,
.insight-article-page .insight-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.insight-body {
  max-width: 900px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.78;
}

.insight-body h1,
.insight-body h2,
.insight-body h3 {
  color: #0f172a;
  line-height: 1.25;
  margin-top: 36px;
  margin-bottom: 14px;
}

.insight-body h1 {
  font-size: 34px;
}

.insight-body h2 {
  font-size: 28px;
}

.insight-body h3 {
  font-size: 22px;
}

.insight-body p {
  margin: 0 0 18px;
}

.insight-body ul,
.insight-body ol {
  margin: 0 0 22px 24px;
  padding: 0;
}

.insight-body li {
  margin-bottom: 8px;
}

.insight-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid #2563eb;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 14px;
  color: #475569;
}

.insight-body a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.insight-body a:hover {
  text-decoration: underline;
}

.related-insights {
  max-width: 980px;
  margin-top: 56px;
}

.related-insights h2 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #0f172a;
}

.related-insights .insight-card {
  padding: 26px 28px;
}

@media (max-width: 760px) {
  .hub-page,
  .tag-page,
  .insight-article-page {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .hub-page .page-title,
  .tag-page .page-title,
  .insight-article-page .page-title {
    font-size: 38px;
  }

  .hub-page .lead,
  .tag-page .lead,
  .insight-article-page .lead {
    font-size: 18px;
  }

  .hub-page .insight-list,
  .tag-page .insight-list,
  .insight-article-page .insight-list {
    gap: 18px;
  }

  .hub-page .insight-card,
  .tag-page .insight-card,
  .insight-article-page .insight-card {
    border-radius: 18px;
    padding: 22px;
  }

  .hub-page .insight-card h2,
  .tag-page .insight-card h2,
  .insight-article-page .insight-card h2 {
    font-size: 21px;
  }

  .hub-page .insight-card h3,
  .tag-page .insight-card h3,
  .insight-article-page .insight-card h3 {
    font-size: 19px;
  }

  .insight-body {
    font-size: 16px;
    line-height: 1.7;
  }
}
