/* HANSCNC Library Template (modern) */

.hanscnc-library-page{
  --ink:#0f172a;
  --muted:rgba(15,23,42,.70);
  --brand:#1e3f86;
  --accent:#E53935;
  --card:#ffffff;
  --line:rgba(15,23,42,.10);
}

.hanscnc-library-page .hans-library-wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 22px;
}

.hanscnc-library-page .hans-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.12);
  color:rgba(255,255,255,.92);
  font-weight:900;
  font-size:12px;
  letter-spacing:.08em;
}

.hanscnc-library-page .hans-library-hero{
  position:relative;
  overflow:hidden;
  padding:44px 0 34px;
}
.hanscnc-library-page .hans-library-hero__bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1100px 560px at 18% 10%, rgba(255,255,255,.92), rgba(255,255,255,0) 58%),
    var(--hero);
  background-size:cover;
  background-position:center;
  filter:saturate(1.05);
  transform:scale(1.02);
}
.hanscnc-library-page .hans-library-hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(15,23,42,.78) 0%, rgba(15,23,42,.45) 52%, rgba(255,255,255,.00) 100%);
}
.hanscnc-library-page .hans-library-hero > *{ position:relative; }

.hanscnc-library-page .hans-library-hero__copy{
  color:#fff;
  text-align:center;
  max-width:860px;
  margin:0 auto;
}
.hanscnc-library-page .hans-library-hero__copy h1{
  margin:14px 0 0;
  font-size:44px;
  line-height:1.08;
  font-weight:1000;
  letter-spacing:-.6px;
}
.hanscnc-library-page .hans-lead{
  margin:12px auto 0;
  max-width:760px;
  color:rgba(255,255,255,.88);
  font-size:16px;
  line-height:1.7;
  font-weight:700;
}

.hanscnc-library-page .hans-library-search{
  margin:22px auto 0;
  max-width:920px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.28);
  border-radius:18px;
  padding:14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hanscnc-library-page .hans-library-search .row{
  display:grid;
  grid-template-columns: 1.2fr .8fr auto;
  gap:10px;
  align-items:center;
}
.hanscnc-library-page input[type="search"],
.hanscnc-library-page select{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  padding:12px 12px;
  background:rgba(255,255,255,.92);
  color:var(--ink);
  font-weight:800;
}

.hanscnc-library-page .hans-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:1000;
  border:1px solid rgba(0,0,0,.06);
  white-space:nowrap;
}
.hanscnc-library-page .hans-btn.primary{
  background:var(--brand);
  color:#fff;
  box-shadow:0 12px 18px rgba(30,63,134,.26);
}
.hanscnc-library-page .hans-btn.primary:hover{ filter:brightness(.95); }
.hanscnc-library-page .hans-btn.ghost{
  background:rgba(255,255,255,.92);
  color:var(--brand);
}
.hanscnc-library-page .hans-btn.ghost:hover{ background:#fff; }

.hanscnc-library-page .hans-filterline{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:rgba(255,255,255,.86);
  font-weight:800;
}

.hanscnc-library-page .sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.hanscnc-library-page .hans-library-list{
  background:#fff;
  padding:38px 0 84px;
}

.hanscnc-library-page .hans-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.hanscnc-library-page .hans-section-head h3{
  margin:0;
  color:var(--ink);
  font-size:26px;
  font-weight:1000;
}
.hanscnc-library-page .hans-section-head p{
  margin:0;
  color:rgba(15,23,42,.70);
  font-weight:800;
}

.hanscnc-library-page .hans-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}

.hanscnc-library-page .hans-res-card{
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.hanscnc-library-page .hans-res-card h4{
  margin:0;
  color:var(--ink);
  font-size:18px;
  font-weight:1000;
  letter-spacing:-.2px;
}
.hanscnc-library-page .hans-res-card p{
  margin:6px 0 0;
  color:rgba(15,23,42,.70);
  font-weight:700;
  line-height:1.6;
}
.hanscnc-library-page .hans-res-card .meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.hanscnc-library-page .pill{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(30,63,134,.06);
  color:rgba(15,23,42,.78);
  font-weight:900;
  font-size:12px;
}

.hanscnc-library-page .hans-res-card .actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:auto;
}
.hanscnc-library-page .hans-res-card .actions .hans-btn{ flex:1; }

.hanscnc-library-page .hans-empty{
  border:1px dashed rgba(15,23,42,.22);
  border-radius:18px;
  padding:22px;
  text-align:center;
  color:rgba(15,23,42,.78);
  font-weight:800;
}
.hanscnc-library-page .hans-empty b{ display:block; color:var(--ink); font-weight:1000; }
.hanscnc-library-page .hans-empty p{ margin:8px 0 0; }

.hanscnc-library-page .hans-library-cta{
  margin-top:22px;
  border-radius:22px;
  background:linear-gradient(135deg, rgba(30,63,134,.10), rgba(229,57,53,.08));
  border:1px solid rgba(15,23,42,.10);
  padding:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.hanscnc-library-page .hans-library-cta h3{ margin:0; color:var(--ink); font-weight:1000; }
.hanscnc-library-page .hans-library-cta p{ margin:8px 0 0; color:rgba(15,23,42,.70); font-weight:800; }
.hanscnc-library-page .hans-library-cta .btns{ display:flex; gap:10px; flex-wrap:wrap; }

@media (max-width:980px){
  .hanscnc-library-page .hans-library-search .row{ grid-template-columns:1fr; }
  .hanscnc-library-page .hans-grid{ grid-template-columns:1fr 1fr; }
  .hanscnc-library-page .hans-section-head{ flex-direction:column; align-items:flex-start; }
}
@media (max-width:560px){
  .hanscnc-library-page .hans-grid{ grid-template-columns:1fr; }
  .hanscnc-library-page .hans-library-cta{ flex-direction:column; align-items:flex-start; }
}
