/* GigLad free resource hub (/free/). Extends /styles.css; mobile first. All classes are prefixed fr-. */

.nav a[aria-current="page"]{color:var(--turq)!important}

/* Hero */
.fr-hero-inner{display:grid;grid-template-columns:1fr;gap:28px;padding-top:44px;padding-bottom:56px;align-items:center}
.fr-hero h1{font-size:clamp(2.3rem,8.5vw,4rem);font-weight:800;margin-bottom:.4em}
.fr-hero .lede{margin-bottom:1.5em}
.fr-facts{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 10px}
.fr-facts li{font-size:.82rem;font-weight:600;color:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);padding:5px 12px;border-radius:99px}
.fr-fan{position:relative;height:210px;max-width:340px;width:100%;margin:6px auto 0}
.fr-fan img{position:absolute;width:118px;height:auto;border-radius:8px;box-shadow:0 24px 40px -14px rgba(0,0,0,.65);top:0;background:var(--navy-2)}
.fr-fan-a{left:6%;transform:rotate(-9deg);top:14px!important}
.fr-fan-b{left:50%;margin-left:-59px;z-index:2;top:0!important;transform:translateY(0)}
.fr-fan-c{right:6%;transform:rotate(9deg);top:14px!important}

/* Library */
.fr-library{background:var(--paper);padding:56px 0 64px;scroll-margin-top:72px}
.fr-library h2{max-width:17em;margin-bottom:.4em}
.fr-intro{color:var(--muted);max-width:36em;margin-bottom:28px}
.fr-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:18px}
.fr-item{display:flex}
.fr-card{display:grid;grid-template-columns:104px 1fr;gap:16px;background:var(--white);border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:var(--shadow);width:100%;position:relative;overflow:hidden;transition:transform .18s,box-shadow .18s}
.fr-card::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:var(--turq)}
.fr-item:nth-child(3n+2) .fr-card::before{background:var(--yellow)}
.fr-item:nth-child(3n) .fr-card::before{background:var(--orange)}
.fr-cover{display:block;align-self:start;margin-top:6px}
.fr-cover img{width:100%;height:auto;border-radius:8px;box-shadow:0 14px 26px -12px rgba(23,21,58,.55);aspect-ratio:560/792;background:var(--navy-2)}
.fr-body{display:flex;flex-direction:column;min-width:0;padding-top:6px}
.fr-meta{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.fr-tag{font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.fr-body h3{font-size:1.15rem;margin-bottom:.35em}
.fr-body h3 a{text-decoration:none}
.fr-body h3 a:hover{text-decoration:underline;text-decoration-color:var(--turq);text-decoration-thickness:2px;text-underline-offset:3px}
.fr-body p{color:var(--muted);font-size:.95rem;line-height:1.5;margin-bottom:.8em}
.fr-chips{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.fr-chips li{font-size:.76rem;font-weight:600;background:var(--paper);border:1px solid var(--line);padding:3px 10px;border-radius:99px}
.fr-cta{margin-top:auto;grid-column:1/-1}
/* On phones the button spans the full card under the cover and text */
.fr-card{align-content:start}
.fr-card .fr-body{display:contents}
.fr-card .fr-meta,.fr-card h3,.fr-card .fr-body>p,.fr-card .fr-chips{grid-column:2}
.fr-card .fr-cover{grid-row:1/5;grid-column:1}
.fr-card .fr-cta{grid-column:1/-1;width:100%}
.fr-card .fr-meta{padding-top:6px;margin-bottom:0}
.fr-more{align-items:center}
.fr-more-card{display:flex;flex-direction:column;justify-content:center;width:100%;border:2px dashed #CFCEDD;border-radius:22px;padding:24px;background:transparent}
.fr-more-card h3{font-size:1.15rem}
.fr-more-card p{color:var(--muted);font-size:.95rem;margin:0}
.fr-more-card .pill{align-self:flex-start;margin-bottom:12px}

/* Where next */
.fr-next{background:var(--white);padding:56px 0 72px}
.fr-next h2{margin-bottom:28px}

@media (hover:hover){
  .fr-card:hover{transform:translateY(-4px);box-shadow:0 26px 50px -20px rgba(23,21,58,.45)}
}
@media (min-width:600px){
  .fr-grid{grid-template-columns:1fr 1fr;gap:22px}
  .fr-fan{height:250px;max-width:420px}
  .fr-fan img{width:140px}
  .fr-fan-b{margin-left:-70px}
}
@media (min-width:961px){
  .fr-hero-inner{grid-template-columns:1.15fr .85fr;gap:48px;padding-top:80px;padding-bottom:92px}
  .fr-fan{height:400px;max-width:460px;margin:0 0 0 auto}
  .fr-fan img{width:200px}
  .fr-fan-b{margin-left:-100px;top:0!important}
  .fr-fan-a,.fr-fan-c{top:46px!important}
  .fr-library{padding:88px 0 96px}
  .fr-grid{grid-template-columns:repeat(3,1fr);gap:26px}
  /* Desktop: cover on top, text below, button pinned to the bottom */
  .fr-card{display:flex;flex-direction:column;gap:0;padding:22px}
  .fr-card .fr-body{display:flex;flex:1}
  .fr-card .fr-meta,.fr-card h3,.fr-card .fr-body>p,.fr-card .fr-chips,.fr-card .fr-cover,.fr-card .fr-cta{grid-column:auto;grid-row:auto}
  .fr-cover{margin:6px auto 20px;width:62%;max-width:210px}
  .fr-card .fr-meta{padding-top:0;margin-bottom:8px}
  .fr-body{padding-top:0}
  .fr-body h3{font-size:1.28rem}
  .fr-body p{font-size:1rem}
  .fr-card .fr-cta{width:auto;align-self:flex-start}
  .fr-next{padding:88px 0 104px}
}
@media (max-width:380px){
  .fr-card{grid-template-columns:88px 1fr;gap:12px;padding:14px}
}
