/* FOCEI Resources Library: front-end styles (all scoped to .focei-resources) */
.focei-resources{--fr-deep:#164C63;--fr-teal:#216B89;--fr-blue:#82C8E5;--fr-ink:#203542;--fr-muted:#5f7886;--fr-line:#D9EBF3;--fr-pale:#F1F9FC;
  width:100%;color:var(--fr-ink);font-family:inherit;font-size:16px;line-height:1.6;box-sizing:border-box}
.focei-resources *,.focei-resources *::before,.focei-resources *::after{box-sizing:border-box}
.focei-resources [hidden]{display:none!important}
.focei-resources a{text-decoration:none}
.focei-resources h2,.focei-resources h3,.focei-resources h4,.focei-resources p{margin-top:0}

/* ---------- Hero ---------- */
.focei-resources__hero{position:relative;isolation:isolate;overflow:hidden;margin:0 0 30px;padding:clamp(32px,6vw,70px) clamp(22px,5vw,60px);border-radius:26px;color:#fff;
  background:radial-gradient(circle at 90% 0,rgba(130,200,229,.35),transparent 45%),linear-gradient(120deg,#123f53,#216b89);box-shadow:0 18px 45px rgba(22,76,99,.18)}
.focei-resources__hero::before{content:"";position:absolute;z-index:-1;top:-150px;right:-70px;width:340px;height:340px;border:1px solid rgba(255,255,255,.16);border-radius:50%;box-shadow:0 0 0 28px rgba(255,255,255,.035),0 0 0 58px rgba(255,255,255,.025)}
.focei-resources__eyebrow{display:inline-flex;align-items:center;gap:10px;margin:0 0 14px;color:#cdeefb;font-size:12px;font-weight:800;letter-spacing:.2em;text-transform:uppercase}
.focei-resources__eyebrow::before{content:"";width:28px;height:2px;background:#a9e5fb}
.focei-resources .focei-resources__hero-title{margin:0 0 14px;max-width:760px;color:#fff;font-size:clamp(30px,4.6vw,52px);font-weight:800;line-height:1.1;letter-spacing:-.02em}
.focei-resources .focei-resources__hero-text{margin:0;max-width:700px;color:rgba(255,255,255,.9);font-size:clamp(15px,1.5vw,18px);line-height:1.75}
.focei-resources__hero-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px}
.focei-resources__hero-pills span{padding:8px 14px;border:1px solid rgba(255,255,255,.3);border-radius:99px;background:rgba(255,255,255,.1);color:#fff;font-size:12px;font-weight:700}

/* ---------- Search and category chips ---------- */
.focei-resources__toolbar{margin:0 0 16px}
.focei-resources__search{display:block;width:100%;max-width:640px;min-height:52px;padding:13px 16px 13px 48px;border:1px solid var(--fr-line);border-radius:14px;color:var(--fr-ink);font:inherit;box-shadow:0 4px 14px rgba(22,76,99,.05);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23216B89' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center/20px}
.focei-resources__search:focus{outline:none;border-color:var(--fr-teal);box-shadow:0 0 0 3px rgba(33,107,137,.15)}
.focei-resources__chips{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 30px}
.focei-chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 15px;border:1px solid var(--fr-line);border-radius:999px;background:#fff;color:var(--fr-deep);font:inherit;font-size:13px;font-weight:700;line-height:1.2;cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease}
.focei-chip span{display:inline-grid;min-width:22px;height:22px;padding:0 6px;place-items:center;border-radius:99px;background:var(--fr-pale);color:var(--fr-teal);font-size:11px}
.focei-chip:hover{border-color:var(--fr-blue);transform:translateY(-2px)}
.focei-chip.is-active{border-color:transparent;background:linear-gradient(110deg,#216B89,#164C63);color:#fff;box-shadow:0 8px 18px rgba(33,107,137,.25)}
.focei-chip.is-active span{background:rgba(255,255,255,.2);color:#fff}
.focei-chip:focus-visible,.focei-resource-card__download:focus-visible{outline:3px solid rgba(130,200,229,.9);outline-offset:2px}

/* ---------- Category sections ---------- */
.focei-resources__category{margin:0 0 44px}
.focei-resources .focei-resources__category-title{display:flex;align-items:center;gap:12px;margin:0 0 20px;padding:0 0 13px;border-bottom:2px solid #e2f1f7;color:var(--fr-deep);font-size:clamp(21px,2.4vw,28px);font-weight:800;line-height:1.25}
.focei-resources__category-title::before{content:"";flex:0 0 7px;width:7px;height:28px;border-radius:8px;background:linear-gradient(180deg,var(--fr-blue),var(--fr-teal))}
.focei-resources__category-title small{display:inline-grid;min-width:28px;height:28px;padding:0 9px;place-items:center;border-radius:99px;background:var(--fr-pale);color:var(--fr-teal);font-size:12px;font-weight:800}
.focei-resources__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}

/* ---------- Document cards ---------- */
.focei-resource-card{--ft:#216B89;--ft-soft:#EAF6FB;position:relative;display:flex;align-items:flex-start;gap:16px;min-width:0;overflow:hidden;padding:22px;border:1px solid #e0eaf0;border-radius:20px;background:linear-gradient(145deg,#fff,#fbfdfe);box-shadow:0 8px 24px rgba(22,76,99,.06);
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;animation:focei-rise .6s cubic-bezier(.2,.7,.2,1) both}
.focei-resource-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--ft);transform:scaleX(0);transform-origin:left;transition:transform .45s ease}
.focei-resource-card:hover{transform:translateY(-6px);border-color:var(--fr-blue);box-shadow:0 20px 40px rgba(22,76,99,.13)}
.focei-resource-card:hover::before{transform:scaleX(1)}
.focei-resources__grid .focei-resource-card:nth-child(2){animation-delay:.06s}
.focei-resources__grid .focei-resource-card:nth-child(3){animation-delay:.12s}

.focei-resource-card__icon{display:flex;flex:0 0 72px;flex-direction:column;align-items:center;gap:7px;padding:10px 6px 9px;border-radius:14px;background:var(--ft-soft)}
.focei-fileicon{display:block;width:44px;height:55px;overflow:visible;transition:transform .3s ease}
.focei-resource-card:hover .focei-fileicon{transform:translateY(-3px) rotate(-4deg)}
.fi-page{fill:var(--ft)}
.fi-fold{fill:rgba(255,255,255,.42)}
.fi-glyph{fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.fi-text{fill:#fff;stroke:none;font-family:Arial,Helvetica,sans-serif;font-size:11px;font-weight:800;letter-spacing:.3px}
.fi-text--big{font-size:24px}
.focei-resource-card__ext{padding:2px 8px;border-radius:99px;background:var(--ft);color:#fff;font-size:9.5px;font-weight:800;letter-spacing:.6px;line-height:1.6}

/* One colour per file type */
.focei-ft--pdf{--ft:#D93025;--ft-soft:#FDECEA}
.focei-ft--word{--ft:#2B579A;--ft-soft:#E8EFFA}
.focei-ft--excel{--ft:#1E7B4A;--ft-soft:#E6F5EC}
.focei-ft--csv{--ft:#17806D;--ft-soft:#E4F5F1}
.focei-ft--ppt{--ft:#D24726;--ft-soft:#FDEDE7}
.focei-ft--zip{--ft:#8A6A12;--ft-soft:#FBF3DC}
.focei-ft--image{--ft:#7A4FD1;--ft-soft:#F1EBFB}
.focei-ft--text,.focei-ft--file{--ft:#216B89;--ft-soft:#EAF6FB}

.focei-resource-card__body{flex:1;min-width:0}
.focei-resources .focei-resource-card__title{margin:0 0 8px;color:var(--fr-deep);font-size:17px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.focei-resources .focei-resource-card__description{display:-webkit-box;margin:0 0 12px;overflow:hidden;color:var(--fr-muted);font-size:14px;line-height:1.65;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}
.focei-resource-card__meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0 0 14px;color:#7a8b94;font-size:12px}
.focei-resource-card__meta span+span::before{content:"•";margin-right:12px;color:#b3c4cc}
.focei-resource-card__download{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border-radius:999px;background:linear-gradient(110deg,#216B89,#164C63);color:#fff!important;font-size:13px;font-weight:800;box-shadow:0 8px 18px rgba(33,107,137,.22);transition:transform .25s ease,box-shadow .25s ease}
.focei-resource-card__download:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(33,107,137,.32);color:#fff!important}
.focei-resource-card__download span{transition:transform .25s ease}
.focei-resource-card__download:hover span{transform:translateY(2px)}
.focei-resource-card__pending{display:inline-block;padding:8px 14px;border:1px dashed #cbdde5;border-radius:99px;color:#7a8b94;font-size:12px}

.focei-resources__empty,.focei-resources__none{padding:30px;border:1px dashed #cbdde5;border-radius:16px;background:#f8fcfe;color:#667780;text-align:center}

@keyframes focei-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}

/* ---------- Tablet ---------- */
@media (max-width:1024px){.focei-resources__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- Phone ---------- */
@media (max-width:640px){
  .focei-resources__hero{padding:30px 22px;border-radius:20px}
  .focei-resources__search{max-width:none}
  .focei-resources__chips{flex-wrap:nowrap;margin-right:-16px;padding:2px 16px 8px 0;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .focei-resources__chips::-webkit-scrollbar{display:none}
  .focei-chip{flex:0 0 auto}
  .focei-resources__grid{grid-template-columns:1fr;gap:14px}
  .focei-resource-card{gap:14px;padding:18px}
  .focei-resource-card__icon{flex-basis:64px}
  .focei-resources .focei-resource-card__title{font-size:16px}
  .focei-resource-card__download{width:100%}
}

@media (prefers-reduced-motion:reduce){
  .focei-resource-card,.focei-resource-card *{animation:none!important;transition:none!important}
}
