/* Academia AG · Biblioteca premium v20260817.18 */

.library-page-heading{
  align-items:center;
  gap:36px;
  margin-bottom:24px;
  padding:4px 0 2px;
}

.library-page-heading>div:first-child{
  min-width:0;
}

.library-page-heading .page-title{
  margin:4px 0 8px;
  font-size:clamp(3rem,4.7vw,4.7rem);
  line-height:.94;
  letter-spacing:-.035em;
}

.library-page-heading .page-subtitle{
  max-width:820px;
  line-height:1.55;
}

.library-summary{
  gap:12px;
}

.library-summary article{
  position:relative;
  min-width:116px;
  padding:16px 18px;
  border-radius:20px;
  border:1px solid rgba(30,41,59,.08);
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(244,249,247,.92));
  box-shadow:0 12px 28px rgba(23,35,63,.06);
  overflow:hidden;
}

.library-summary article::after{
  content:"";
  position:absolute;
  width:64px;
  height:64px;
  right:-26px;
  bottom:-31px;
  border-radius:50%;
  background:rgba(0,81,52,.06);
}

.library-summary strong{
  font-size:1.8rem;
  line-height:1;
}

.library-toolbar{
  min-height:64px;
  margin-bottom:30px;
  padding:9px 11px 9px 18px;
  border-radius:20px;
  background:rgba(255,255,255,.84);
  box-shadow:0 16px 40px rgba(23,35,63,.07);
  backdrop-filter:blur(18px);
}

.library-search{
  min-width:0;
  flex:1;
}

.library-search span{
  color:#005134;
}

.library-search input{
  width:100%;
  min-height:44px;
  border:0;
  outline:0;
  background:transparent;
  color:#1E293B;
  font-size:.98rem;
}

.library-filter-tabs{
  display:flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border-radius:15px;
  background:#f3f6f4;
  border:1px solid rgba(30,41,59,.06);
}

.library-filter{
  min-height:38px;
  padding:0 16px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#59657a;
  font-weight:800;
  transition:.2s ease;
}

.library-filter:hover{
  color:#17233f;
  background:rgba(255,255,255,.75);
}

.library-filter.active{
  background:#17233f;
  color:#fff;
  box-shadow:0 7px 18px rgba(23,35,63,.17);
}

.library-section{
  margin-top:6px;
}

.library-section-heading{
  align-items:center;
  margin:0 0 14px;
  padding:0 1px;
}

.library-section-heading h2{
  margin-top:3px;
  font-size:1.65rem;
  color:#17233f;
}

.library-section-heading>span{
  padding:7px 10px;
  border-radius:999px;
  background:rgba(0,81,52,.055);
  color:#657286;
  font-size:.72rem;
  font-weight:700;
}

.library-materials-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.library-material-card{
  position:relative;
  grid-template-columns:142px minmax(0,1fr);
  min-height:178px;
  border-radius:24px;
  border:1px solid rgba(23,35,63,.08);
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(249,247,240,.92));
  box-shadow:0 14px 34px rgba(23,35,63,.07);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.library-material-card::before{
  content:"";
  position:absolute;
  top:18px;
  left:0;
  width:3px;
  height:40px;
  border-radius:0 5px 5px 0;
  background:#0b7453;
  z-index:2;
}

.library-material-card:hover{
  transform:translateY(-3px);
  border-color:rgba(0,81,52,.20);
  box-shadow:0 20px 46px rgba(23,35,63,.10);
}

.library-material-thumb{
  min-height:178px;
  padding:12px 10px 12px 14px;
  display:grid;
  place-items:center;
  background:linear-gradient(155deg,#eef5f2,#f8faf9);
  border-right:1px solid rgba(23,35,63,.06);
}

.library-material-thumb img{
  width:100%;
  height:146px;
  object-fit:contain;
  object-position:center;
  border-radius:8px;
  filter:drop-shadow(0 7px 10px rgba(23,35,63,.12));
}

.library-material-thumb span{
  left:12px;
  right:auto;
  bottom:10px;
  padding:5px 9px;
  border-radius:999px;
  background:#17233f;
  box-shadow:0 5px 12px rgba(23,35,63,.16);
  text-transform:none;
  letter-spacing:.01em;
}

.library-material-body{
  padding:22px 20px 22px 22px;
  gap:18px;
}

.library-material-body>div{
  min-width:0;
}

.library-material-body .eyebrow{
  font-size:.66rem;
}

.library-material-body h3{
  margin:7px 0 6px;
  color:#17233f;
  font-size:1.3rem;
  line-height:1.16;
}

.library-material-body p{
  margin:0;
  color:#6b7587;
  font-size:.78rem;
  line-height:1.45;
}

.library-material-body .btn{
  flex:0 0 auto;
  min-height:44px;
  padding:0 18px;
  border-radius:14px;
  background:#fff;
  border-color:rgba(23,35,63,.11);
  box-shadow:0 7px 18px rgba(23,35,63,.05);
}

.library-material-body .btn:hover{
  background:#17233f;
  color:#fff;
  border-color:#17233f;
}

.library-security-note{
  margin-top:28px;
  min-height:70px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:15px 18px;
  border:1px solid rgba(0,81,52,.08);
  border-radius:18px;
  background:linear-gradient(90deg,rgba(231,246,241,.88),rgba(245,250,248,.9));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}

.library-security-note>span{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:0 0 34px;
  border-radius:11px;
  background:#e1f1eb;
  color:#006b4b;
  font-size:1rem;
  font-weight:900;
}

.library-security-note strong{
  display:block;
  color:#21304c;
  font-size:.96rem;
}

.library-security-note p{
  margin:2px 0 0;
  color:#68758a;
  font-size:.74rem;
  line-height:1.4;
}

@media(max-width:1100px){
  .library-materials-grid{grid-template-columns:1fr}
}

@media(max-width:760px){
  .library-page-heading{align-items:flex-start;flex-direction:column;gap:18px}
  .library-summary{width:100%}
  .library-summary article{flex:1}
  .library-toolbar{align-items:stretch;flex-direction:column;padding:12px}
  .library-filter-tabs{width:100%}
  .library-filter{flex:1;padding:0 10px}
}

@media(max-width:560px){
  .library-page-heading .page-title{font-size:2.65rem}
  .library-material-card{grid-template-columns:108px minmax(0,1fr);min-height:164px}
  .library-material-thumb{min-height:164px;padding:10px}
  .library-material-thumb img{height:130px}
  .library-material-body{align-items:flex-start;flex-direction:column;padding:17px 15px;gap:13px}
  .library-material-body h3{font-size:1.12rem}
  .library-material-body .btn{width:100%}
  .library-security-note{align-items:flex-start}
}
