/* Get Fluency Student Area 1.9.5 — camada final para celular e tablet.
   Carrega por último e só ajusta telas menores que 1100px (o desktop não muda),
   com exceção de regras de imagem que valem para qualquer tamanho. */

/* ---------- imagens nunca estouram o espaço ---------- */
/* só imagens do conteúdo: logo e ícones do cabeçalho mantêm o tamanho do tema */
.gfsa-lesson-body img,.gfsa-portal-dashboard .gfsa-portal-feature-body img{max-width:100%}
body.gfsa-portal-shell .gfsa-portal-media-frame img.gfsa-portal-slide{height:100%!important}

@media (max-width:1099px){
  /* ---------- cards das ferramentas (Practice Games, Grammar…) e "Continue aprendendo" ---------- */
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-features,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-level-links{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;
    overflow:visible!important;flex-wrap:initial!important;
  }
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-feature,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-learning-tile{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
    width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;
    padding:0!important;margin:0!important;gap:0!important;overflow:hidden!important;text-align:left!important;
    border-radius:18px!important;
  }
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-feature .gfsa-portal-media-frame,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-learning-tile .gfsa-portal-media-frame{
    position:relative!important;display:block!important;width:100%!important;max-width:none!important;height:auto!important;
    aspect-ratio:16/10;flex:0 0 auto!important;margin:0!important;border-radius:0!important;
    background:linear-gradient(180deg,#f4f7fd,#eaf0fa)!important;overflow:hidden!important;
  }
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-media-frame img.gfsa-portal-slide{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;
    object-fit:var(--gfsa-media-fit,contain)!important;
    object-position:var(--gfsa-media-x,50%) var(--gfsa-media-y,50%)!important;
    transform:scale(var(--gfsa-media-zoom,1));transform-origin:var(--gfsa-media-x,50%) var(--gfsa-media-y,50%);
    border-radius:0!important;padding:0!important;
  }
  /* desenhos padrão (SVG) ficam inteiros e com respiro */
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-media-frame img.gfsa-portal-slide[src$=".svg"]{object-fit:contain!important;padding:10px 14px!important}
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-feature-body,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-learning-copy{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:6px!important;
    flex:1 1 auto!important;width:auto!important;min-width:0!important;padding:12px 14px 14px!important;margin:0!important;text-align:left!important;
  }
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-feature-title,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-learning-copy strong{font-size:16.5px!important;line-height:1.25!important;margin:0!important;display:flex!important;align-items:center;gap:8px}
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-feature-body small,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-learning-copy small{
    font-size:13.5px!important;line-height:1.45!important;margin:0!important;flex:1 1 auto;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  }
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-feature .gfsa-portal-card-action,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-learning-tile .gfsa-portal-card-action{
    margin-top:6px!important;min-height:42px!important;width:100%!important;justify-content:center!important;align-self:stretch!important;
    border-radius:12px!important;font-size:14.5px!important;
  }

  /* ---------- toques confortáveis ---------- */
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-pro-lang a{min-width:40px!important;min-height:38px!important;display:inline-flex!important;align-items:center;justify-content:center}
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-pro-footer a{display:inline-flex;align-items:center;min-height:40px;padding:0 4px}
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-pro-link,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-recorded-back-link{min-height:40px;display:inline-flex!important;align-items:center}
  html body .gf-lang-switcher .gf-lang-link{min-width:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center}
  .gfsa-topic-page .gfsa-topic-breadcrumb a,.gfsa-topic-page nav a{min-height:36px;display:inline-flex;align-items:center}

  /* ---------- textos pequenos demais ---------- */
  html body .gfsa-kicker,html body .gfsa-pro-kicker{font-size:11.5px!important;letter-spacing:.12em}

  /* ---------- formulários: 16px evita o zoom automático do iPhone ---------- */
  body.gfsa-portal-shell input[type=text],body.gfsa-portal-shell input[type=email],body.gfsa-portal-shell input[type=tel],body.gfsa-portal-shell input[type=date],
  body.gfsa-portal-shell input[type=password],body.gfsa-portal-shell input[type=number],body.gfsa-portal-shell select,body.gfsa-portal-shell textarea,
  .gfsa-topic-page input,.gfsa-topic-page select,.gfsa-topic-page textarea{font-size:16px!important}

  /* ---------- modais em tela cheia no celular ---------- */
  .gfsa-classes-box{max-height:calc(100dvh - 24px)!important;overflow:auto!important}
}

@media (max-width:719px){
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-features,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-level-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-feature-title-icon{display:none!important}
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-feature-title,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-learning-copy strong{font-size:15px!important}
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-feature-body small,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-learning-copy small{font-size:12.5px!important;-webkit-line-clamp:2}
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-feature-body,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-learning-copy{padding:10px 11px 12px!important}
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-feature .gfsa-portal-card-action,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-learning-tile .gfsa-portal-card-action{font-size:13.5px!important;min-height:40px!important;padding:0 8px!important}
}
@media (max-width:339px){
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-features,
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-portal-dashboard .gfsa-portal-level-links{grid-template-columns:1fr!important}
}

/* perfil do aluno e páginas internas: respiro nas laterais */
@media (max-width:1099px){
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-self-profile-section{padding-left:16px!important;padding-right:16px!important;box-sizing:border-box!important;width:100%!important}
  html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-recorded-page,html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-recorded-section{padding-left:16px;padding-right:16px;box-sizing:border-box}
}
@media (max-width:380px){
  html body .gf-lang-switcher .gf-lang-link{min-width:30px;padding-left:2px;padding-right:2px}
  html body .site-header .gf-header-tools{gap:4px!important}
}
/* botão do WhatsApp não cobre o conteúdo nos portais */
@media (max-width:719px){
  body.gfsa-portal-shell .gf-floating-whatsapp,body.gfta-portal-page .gf-floating-whatsapp,.gfsa-topic-page~.gf-floating-whatsapp{width:48px!important;height:48px!important;right:12px!important;bottom:14px!important;opacity:.92}
}
@media (max-width:1099px){html body.gfsa-portal-shell:not(#gfsa-x) .gfsa-self-profile-section small{font-size:12.5px!important}}

/* 1.9.10 — cartões de nível sem o quadrado azul: etiqueta do nível acima do título */
.gfsa-nav-card .gfsa-card-level{display:inline-flex;align-self:flex-start;width:max-content;align-items:center;border-radius:999px;padding:3px 10px;margin:0 0 6px;background:#eef3ff;color:#1235a6;font:800 12px/1.3 Montserrat,Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase}
html body .gfsa-nav-card:not(:has(.gfsa-card-image)){grid-template-columns:1fr!important;min-height:0!important}
html body .gfsa-nav-card:not(:has(.gfsa-card-image)) .gfsa-card-copy{grid-column:1/-1!important;padding-left:0}

/* 1.10.0 — conteúdo bloqueado com cadeado (cards de tópicos, níveis, fonética e aulas) */
.gfsa-nav-card.is-locked,.gfsa-book-card.is-locked,.gfsa-lesson-card.is-locked{position:relative;cursor:not-allowed;filter:grayscale(.55);opacity:.78}
.gfsa-nav-card.is-locked:hover,.gfsa-book-card.is-locked:hover{transform:none!important;box-shadow:none!important}
.gfsa-nav-card.is-locked .gfsa-card-image img,.gfsa-book-card.is-locked img{opacity:.6}
.gfsa-lock-badge{position:absolute;top:10px;right:10px;z-index:3;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#071b57;color:#fff;font-size:16px;line-height:1;box-shadow:0 4px 12px rgba(7,27,87,.28)}
.gfsa-locked-note{display:block;margin-top:8px;font-style:normal;font-weight:700;font-size:12.5px;color:#8a5a00!important;background:#fff6dd;border:1px solid #f3d98b;border-radius:10px;padding:6px 10px;line-height:1.35}
.gfsa-lesson-card.is-locked summary{cursor:not-allowed;list-style:none}
.gfsa-lesson-card.is-locked summary::-webkit-details-marker{display:none}
.gfsa-lesson-card.is-locked .gfsa-lesson-chevron{font-size:16px}
.gfsa-locked-page{max-width:560px;margin:40px auto;padding:34px 24px;text-align:center;background:#fff;border:1px solid #e3e8f4;border-radius:22px;box-shadow:0 14px 40px rgba(7,27,87,.08)}
.gfsa-locked-page-icon{display:inline-flex;width:64px;height:64px;align-items:center;justify-content:center;border-radius:50%;background:#071b57;color:#fff;font-size:28px;margin-bottom:10px}
.gfsa-locked-page h2{margin:6px 0 8px;color:#071b57}
.gfsa-locked-page p{color:#4b5875;margin:0 0 18px}
/* 1.11.0 — botão Comprar nos conteúdos bloqueados */
.gfsa-buy-btn{position:relative;z-index:4;display:inline-flex;align-items:center;justify-content:center;margin-top:8px;min-height:40px;padding:8px 16px;border-radius:999px;background:#ff2845;color:#fff!important;font-weight:800;font-size:14px;text-decoration:none!important;cursor:pointer;filter:none;box-shadow:0 8px 18px -8px rgba(255,40,69,.7)}
.gfsa-buy-btn:hover{background:#071b57}
.is-locked .gfsa-buy-btn{opacity:1}
.gfsa-nav-card.is-locked:has(.gfsa-buy-btn),.gfsa-book-card.is-locked:has(.gfsa-buy-btn){filter:none;opacity:1}
.gfsa-nav-card.is-locked:has(.gfsa-buy-btn) .gfsa-card-image img{opacity:.7}
.gfsa-buy-big{background:#ff2845!important}

/* 1.12.0 — cards compactos (Fonética e Conteúdos extras) */
.gfsa-tgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:6px}
@media(max-width:960px){.gfsa-tgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.gfsa-tgrid{grid-template-columns:1fr}}
.gfsa-tcard{display:flex;flex-direction:column;background:#fff;border:1px solid #dfe5f3;border-radius:18px;overflow:hidden;text-decoration:none!important;color:#0b1f43!important;box-shadow:0 8px 22px -16px rgba(7,27,87,.35);transition:transform .18s,box-shadow .18s,border-color .18s;min-width:0}
a.gfsa-tcard:hover{transform:translateY(-3px);border-color:#b9c8f0;box-shadow:0 16px 30px -18px rgba(7,27,87,.45)}
.gfsa-tcard-img{display:block;aspect-ratio:16/9;background:#eef2fb;overflow:hidden}
.gfsa-tcard-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
a.gfsa-tcard:hover .gfsa-tcard-img img{transform:scale(1.04)}
.gfsa-tcard-body{display:flex;flex-direction:column;gap:6px;padding:14px 16px 16px;flex:1}
.gfsa-tcard-pill{align-self:flex-start;font-size:11px;font-weight:800;letter-spacing:.06em;padding:4px 10px;border-radius:999px;background:#e8efff;color:#1d4ed8}
.gfsa-tcard strong{font-size:16px;line-height:1.25;color:#071b57}
.gfsa-tcard-text{font-size:13.5px;color:#5b6a83;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.gfsa-tcard-meta{font-size:12px;color:#7a879f;font-weight:600}
.gfsa-tcard-cta{margin-top:auto;padding-top:6px;font-style:normal;font-weight:800;font-size:13.5px;color:#1d4ed8}
.gfsa-tcard.is-locked{cursor:not-allowed;background:#fafbfd}
.gfsa-tcard.is-locked .gfsa-tcard-img img{filter:grayscale(1);opacity:.55}
.gfsa-tcard.is-locked strong{color:#5b6a83}
.gfsa-tcard.is-locked .gfsa-tcard-pill{background:#eceff4;color:#6b7686}
.gfsa-tcard-lock{margin-top:auto;padding-top:6px;font-style:normal;font-weight:700;font-size:12.5px;color:#7a879f}
.gfsa-tcard .gfsa-buy-btn{align-self:flex-start}
/* livro em destaque */
.gfsa-bookhero{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:center;background:#fff;border:1px solid #dfe5f3;border-radius:20px;padding:18px;margin:4px 0 20px;box-shadow:0 10px 26px -18px rgba(7,27,87,.35);text-decoration:none!important;color:#0b1f43!important}
.gfsa-bookhero-cover{display:block;border-radius:10px;overflow:hidden;box-shadow:0 14px 26px -12px rgba(7,27,87,.5);aspect-ratio:3/4;background:#eef2fb}
.gfsa-bookhero-cover img{width:100%;height:100%;object-fit:cover;display:block}
.gfsa-bookhero small{font-weight:800;letter-spacing:.1em;font-size:11.5px;color:#ff2845}
.gfsa-bookhero h3{margin:4px 0 6px;font-size:22px;color:#071b57}
.gfsa-bookhero p{margin:0 0 10px;color:#5b6a83}
.gfsa-bookhero ul{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.gfsa-bookhero li{font-size:12.5px;font-weight:700;padding:5px 10px;border-radius:999px;background:#eef2fb;color:#1d3d8f}
.gfsa-bookhero-cta{display:inline-flex;align-items:center;min-height:42px;padding:9px 18px;border-radius:999px;background:#071b57;color:#fff;font-weight:800}
.gfsa-bookhero.is-locked{cursor:not-allowed}
.gfsa-bookhero.is-locked .gfsa-bookhero-cover img{filter:grayscale(1);opacity:.6}
.gfsa-bookhero.is-locked .gfsa-bookhero-cta{background:#eceff4;color:#6b7686}
@media(max-width:560px){.gfsa-bookhero{grid-template-columns:96px minmax(0,1fr);gap:14px;padding:14px}.gfsa-bookhero h3{font-size:18px}}
