/* Shared layout for /tools/* pages */
body.tool-page{
  font-family:var(--site-font, 'Segoe UI', system-ui, sans-serif);
  background:linear-gradient(180deg, #f1f5f9 0%, #ffffff 240px);
  color:var(--site-text-secondary, #334155);
}

.tool-main{
  padding:16px 16px 40px;
}

.tool-page-wrap{
  max-width:1180px;
  margin:0 auto;
}

.tool-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  font-size:13px;
  color:var(--site-muted, #64748b);
}

.tool-breadcrumb a{
  color:var(--site-link, #2563eb);
  font-weight:600;
  text-decoration:none;
}

.tool-breadcrumb a:hover{
  text-decoration:underline;
  text-underline-offset:2px;
}

.tool-breadcrumb [aria-current="page"]{
  color:var(--site-text, #0f172a);
  font-weight:600;
}

.tool-hero{
  margin-bottom:16px;
  padding:clamp(20px, 3vw, 28px);
  border-radius:16px;
  border:1px solid #dbe3f0;
  background:linear-gradient(135deg, #1a3568 0%, #1e3c72 45%, #2a5298 100%);
  color:#fff;
  box-shadow:0 10px 30px rgba(30, 60, 114, 0.18);
}

.tool-eyebrow{
  display:inline-flex;
  margin:0 0 8px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.16);
  font-size:11px;
  font-weight:700;
  letter-spacing:0.07em;
  text-transform:uppercase;
}

.tool-hero h1{
  margin:0 0 8px;
  font-size:clamp(1.45rem, 3.5vw, 2rem);
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.2;
  color:#fff;
}

.tool-lead{
  margin:0;
  max-width:62ch;
  font-size:clamp(0.92rem, 2vw, 1.02rem);
  line-height:1.6;
  color:rgba(255,255,255,0.92);
}

.tool-switcher{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
}

.tool-switcher a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 16px;
  border-radius:999px;
  border:1px solid #dbe3f0;
  background:#fff;
  color:var(--site-primary, #1e3c72);
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  transition:background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.tool-switcher a:hover{
  background:#eff6ff;
  border-color:#bfdbfe;
}

.tool-switcher a.is-active{
  background:linear-gradient(135deg, #1e3c72, #2a5298);
  border-color:transparent;
  color:#fff;
  box-shadow:0 4px 14px rgba(30, 60, 114, 0.25);
}

.tool-tips{
  margin-top:20px;
  padding:20px clamp(18px, 3vw, 24px);
  border-radius:14px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
}

.tool-tips h2{
  margin:0 0 12px;
  font-size:13px;
  font-weight:800;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--site-muted, #64748b);
}

.tool-tips ul{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}

.tool-tips li{
  position:relative;
  padding-left:18px;
  font-size:14px;
  line-height:1.55;
  color:var(--site-text-secondary, #334155);
}

.tool-tips li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.55em;
  width:7px;
  height:7px;
  border-radius:50%;
  background:linear-gradient(135deg, #1e3c72, #2563eb);
  transform:translateY(-50%);
}

.tool-page .main-container{
  padding:0;
  max-width:none;
}

@media (max-width: 768px){
  .tool-main{
    padding:12px 12px 32px;
  }

  .tool-switcher a{
    flex:1 1 calc(50% - 8px);
    justify-content:center;
    font-size:13px;
    padding:8px 12px;
  }
}
