/* Look Casual – Menu móvel global v1.3.0. Ativo apenas no telefone / tablet compacto. */
@media (max-width: 900px) {
  body.lc-mobile-nav-ready {
    padding-bottom: calc(87px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: clip;
  }
  html body.lc-mobile-nav-ready .lc-old-side-menu,
  html body.lc-mobile-nav-ready .lc-duplicate-mobile-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  /* Recupera recuo reservado para o antigo trilho lateral, se detectado no layout. */
  body.lc-mobile-nav-ready .lc-reclaim-padding {padding-left:18px!important;}
  body.lc-mobile-nav-ready .lc-reclaim-margin {margin-left:0!important;max-width:100%!important;}
  .lc-bottom-nav, .lc-mobile-panel, .lc-menu-backdrop {box-sizing:border-box;}
  .lc-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 2147482000;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    min-height: 76px;
    padding: 6px 7px calc(7px + env(safe-area-inset-bottom, 0px));
    background: #fffdfb;
    border-top: 1px solid #e7d9d8;
    box-shadow: 0 -7px 22px rgba(41, 18, 26, .09);
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  }
  .lc-bottom-nav a, .lc-bottom-nav button {
    display: flex; flex-direction:column; align-items:center; justify-content:center;
    gap:5px; min-width:0; min-height:58px; padding:5px 3px;
    border:0; border-radius:15px;
    background:transparent; color:#643044;
    font:600 12px/1.18 system-ui, -apple-system, 'Segoe UI', sans-serif;
    text-align:center; text-decoration:none !important; cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  .lc-bottom-nav svg {width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none;}
  .lc-bottom-nav a[aria-current="page"], .lc-bottom-nav button[aria-expanded="true"] {
    color:#72213f; background:#f7eaf0;
  }
  .lc-bottom-nav a:focus-visible, .lc-bottom-nav button:focus-visible {
    outline:2px solid #72213f; outline-offset:1px;
  }
  .lc-menu-backdrop {
    position:fixed; inset:0; z-index:2147482001;
    background:rgba(23,14,19,.47);
    overscroll-behavior:contain;
  }
  .lc-mobile-panel {
    position:fixed; top:0;right:0;bottom:0;
    z-index:2147482002;
    width:min(90vw,360px); max-width:100%; overflow-y:auto;
    overscroll-behavior:contain;
    padding:calc(18px + env(safe-area-inset-top,0px)) 18px calc(26px + env(safe-area-inset-bottom,0px));
    background:#fffdfa;
    color:#48283a;
    box-shadow:-15px 0 32px rgba(38,13,24,.20);
    font-family:system-ui,-apple-system,'Segoe UI',sans-serif;
  }
  .lc-mobile-panel-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;margin-bottom:10px;border-bottom:1px solid #eadcda;}
  .lc-mobile-panel-header strong {font:700 23px/1.2 Georgia,serif;color:#431829;}
  .lc-mobile-panel-header button {width:44px;height:44px;border:0;border-radius:12px;background:#f5edef;color:#6b2441;font-size:28px;cursor:pointer;}
  .lc-mobile-panel a {display:block;padding:14px 12px;border-bottom:1px solid #f1e7e3;color:#49283a;text-decoration:none!important;font:600 15px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif;}
  .lc-mobile-panel a.lc-submenu-link {padding-left:27px;font-weight:500;}
  .lc-mobile-panel .lc-group-label {margin:20px 12px 4px;color:#875266;font:700 11px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:.12em;text-transform:uppercase;}
  .lc-mobile-panel a:focus-visible, .lc-mobile-panel button:focus-visible {outline:2px solid #975569;outline-offset:2px;}
  .lc-menu-backdrop[hidden], .lc-mobile-panel[hidden] {display:none!important;}
  body.lc-menu-open {overflow:hidden!important;}
  body.lc-mobile-nav-ready .lc-repositioned-assistant {
    bottom:calc(86px + env(safe-area-inset-bottom,0px)) !important;
    right:8px!important; left:auto!important;
    max-width:min(64vw,245px)!important;
  }
  /* Mantém o ajuste de cartazes verticais do pacote anterior. */
  body.lc-games-context img.lc-game-poster {display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important;margin-inline:auto!important;box-sizing:border-box!important;}
  body.lc-games-context .lc-poster-holder {box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;aspect-ratio:auto!important;overflow:visible!important;align-self:stretch;grid-column:1/-1;}
  body.lc-games-context .entry-content > img, body.lc-games-context .entry-content figure img, body.lc-games-context main article figure img {max-width:100%;height:auto;}
}
@media (min-width: 901px) {
  .lc-bottom-nav, .lc-mobile-panel, .lc-menu-backdrop {display:none!important;}
}

@media (max-width: 900px) {
  .lc-mobile-panel a.lc-external-link::after {
    content: " ↗";
    display: inline-block;
    font-size: 16px;
    margin-left: 5px;
    color: #875266;
  }
}

/* v1.3 — Submenu de ferramentas do Meu Laboratório no painel móvel. */
@media (max-width: 900px) {
  .lc-mobile-panel .lc-lab-accordion {
    margin: 5px 0 9px;
    overflow: hidden;
    border: 1px solid #e9d9dd;
    border-radius: 13px;
    background: #fffaf8;
  }
  .lc-mobile-panel .lc-lab-accordion-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 14px;
    border: 0;
    background: #f9f0f2;
    color: #642641;
    font: 700 15px/1.35 system-ui, -apple-system, 'Segoe UI', sans-serif;
    text-align: left;
    cursor: pointer;
  }
  .lc-mobile-panel .lc-accordion-chevron {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
  }
  .lc-mobile-panel .lc-lab-accordion-toggle[aria-expanded="true"] .lc-accordion-chevron {
    transform: rotate(225deg);
  }
  .lc-mobile-panel .lc-lab-accordion-panel[hidden] { display: none !important; }
  .lc-mobile-panel .lc-lab-accordion-panel {
    padding: 3px 5px 8px;
  }
  .lc-mobile-panel .lc-lab-accordion-panel a.lc-submenu-link {
    padding: 13px 12px 13px 19px;
    border-bottom: 1px solid #f1e6e6;
  }
  .lc-mobile-panel .lc-lab-accordion-panel a:last-child {border-bottom:0;}
  .lc-mobile-panel a[aria-current="page"] {
    color:#7d2147;
    background: #f9eef1;
    border-radius: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lc-mobile-panel .lc-accordion-chevron { transition: none; }
}

/* v2.3 — SOMENTE MENU GLOBAL. Barra editorial flutuante, fina e responsiva. */
@media (max-width:900px) {
  body.lc-mobile-nav-ready { padding-bottom:calc(92px + env(safe-area-inset-bottom,0px)) !important; }
  html body .lc-bottom-nav {
    position:fixed !important;
    left: max(12px,env(safe-area-inset-left,0px)) !important;
    right: max(12px,env(safe-area-inset-right,0px)) !important;
    bottom:calc(10px + env(safe-area-inset-bottom,0px)) !important;
    width:auto !important;
    min-height:58px !important;
    padding:5px 6px !important;
    gap:2px !important;
    border:1px solid rgba(107,30,59,.16) !important;
    border-radius:20px !important;
    background:rgba(252,249,246,.97) !important;
    box-shadow:0 8px 30px rgba(55,25,37,.14),0 1px 4px rgba(55,25,37,.05) !important;
    -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  }
  html body .lc-bottom-nav :is(a,button) {
    min-height:48px !important;
    padding:5px 2px !important;
    gap:3px !important;
    border-radius:13px !important;
    color:#6b1e3b !important;
    font:500 10px/1.12 system-ui,-apple-system,'Segoe UI',sans-serif !important;
    letter-spacing:.005em;
  }
  html body .lc-bottom-nav svg {width:19px !important;height:19px !important;stroke-width:1.65 !important;}
  html body .lc-bottom-nav :is(a[aria-current="page"],button[aria-expanded="true"]) {
    background:#f1e6e9 !important;color:#6b1e3b !important;
  }
  html body .lc-bottom-nav :is(a,button):focus-visible {outline:2px solid #6b1e3b !important;outline-offset:2px;}
  html body .lc-mobile-panel {width:min(88vw,340px) !important;background:#fcfaf7 !important;box-shadow:-12px 0 34px rgba(42,17,29,.16) !important;}
  html body .lc-mobile-panel-header strong {font:400 25px/1.2 Georgia,serif !important;color:#6b1e3b !important;}
  html body .lc-mobile-panel-header button {background:#f1e6e9 !important;border-radius:50% !important;font-size:24px !important;}
  html body .lc-mobile-panel a {font-weight:500 !important;border-bottom-color:#eadfe0 !important;}
  html body.lc-mobile-nav-ready .lc-repositioned-assistant {bottom:calc(93px + env(safe-area-inset-bottom,0px)) !important;}
}
@media (max-width:350px) {html body .lc-bottom-nav :is(a,button) {font-size:9px !important;}html body .lc-bottom-nav svg{width:18px !important;height:18px !important;}}

/* v2.4 — Menu aprovado, mantendo a posição da barra inferior v2.3. */
@media(max-width:900px){
 html body .lc-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
 html body .lc-bottom-nav :is(a,button){font-size:10px!important;gap:4px!important;}
 html body .lc-mobile-panel{width:min(92vw,420px)!important;background:#fffcf8!important;color:#6b1e3b!important;padding:calc(26px + env(safe-area-inset-top,0px)) 22px calc(30px + env(safe-area-inset-bottom,0px))!important;}
 html body .lc-mobile-panel-header{align-items:start!important;padding-bottom:24px!important;}
 html body .lc-mobile-panel-header .lc-brand-title strong{display:block;font:400 clamp(26px,7vw,34px)/1.2 Georgia,serif;color:#6b1e3b;}
 html body .lc-mobile-panel-header .lc-brand-title small{display:block;margin-top:5px;font:600 9px/1.5 system-ui,sans-serif;letter-spacing:.16em;color:#8b5e6e;}
 html body .lc-mobile-panel .lc-menu-view[hidden]{display:none!important;}
 html body .lc-mobile-panel .lc-menu-row{display:flex!important;align-items:center!important;width:100%;min-height:67px;padding:13px 5px!important;gap:16px!important;border:0!important;border-bottom:1px solid #eadbd5!important;border-radius:0!important;background:transparent!important;color:#6b1e3b!important;text-align:left!important;text-decoration:none!important;font:400 21px/1.3 Georgia,serif!important;cursor:pointer;}
 html body .lc-mobile-panel .lc-menu-row svg{flex:0 0 42px;width:42px;height:42px;padding:10px;border-radius:50%;background:#f5e9e7;stroke:#6b1e3b;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round;}
 html body .lc-mobile-panel .lc-menu-arrow{margin-left:auto;font:30px/1 Georgia,serif;}
 html body .lc-mobile-panel .lc-menu-note{margin:22px 0 0;padding:24px 20px;border-radius:17px;background:#f5e9e5;color:#8b2747;font:italic 21px/1.4 Georgia,serif;}
 html body .lc-mobile-panel .lc-menu-back{display:block;width:100%;padding:12px 0 20px;border:0;border-bottom:1px solid #eadbd5;background:transparent;color:#6b1e3b;text-align:left;font:400 27px/1.25 Georgia,serif;cursor:pointer;}
 html body .lc-mobile-panel .lc-menu-subrow{display:block!important;font-size:19px!important;min-height:70px;}
 html body .lc-mobile-panel .lc-menu-subrow small{display:block;margin-top:5px;color:#7d6267;font:400 12px/1.45 system-ui,sans-serif;}
}

/* v2.8 — somente compactação e hierarquia do painel móvel. Não altera a barra inferior. */
@media (max-width:900px) {
  html body .lc-mobile-panel {
    padding:calc(15px + env(safe-area-inset-top,0px)) 18px calc(22px + env(safe-area-inset-bottom,0px)) !important;
  }
  html body .lc-mobile-panel-header {
    position:sticky;
    top:calc(-15px - env(safe-area-inset-top,0px));
    z-index:2;
    align-items:center !important;
    margin-bottom:6px !important;
    padding:11px 0 14px !important;
    background:#fffcf8 !important;
  }
  html body .lc-mobile-panel-header .lc-brand-title strong {
    font:400 clamp(22px,6.4vw,26px)/1.15 Georgia,serif !important;
  }
  html body .lc-mobile-panel-header .lc-brand-title small {
    font-size:9px !important;
    letter-spacing:.105em !important;
  }
  html body .lc-mobile-panel-header button {
    flex:0 0 38px;
    width:38px !important;height:38px !important;
    min-width:38px !important;
    font-size:23px !important;
  }
  html body .lc-mobile-panel .lc-group-label {
    margin:13px 4px 4px !important;
    color:#8b5e6e !important;
    letter-spacing:.12em !important;
    font:700 10px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif !important;
  }
  html body .lc-mobile-panel .lc-menu-row {
    min-height:53px !important;
    padding:9px 3px !important;
    gap:12px !important;
    font:600 15px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif !important;
  }
  html body .lc-mobile-panel .lc-menu-row svg {
    flex:0 0 35px !important;
    width:35px !important;height:35px !important;
    padding:8px !important;
    border-radius:11px !important;
    background:#f3e8e8 !important;
    stroke-width:1.7 !important;
  }
  html body .lc-mobile-panel .lc-menu-arrow {
    font:400 24px/1 system-ui,-apple-system,'Segoe UI',sans-serif !important;
  }
  html body .lc-mobile-panel .lc-menu-row.lc-menu-active-group {
    color:#7b2545 !important;
    background:#fbf1f2 !important;
  }
  html body .lc-mobile-panel .lc-menu-note {
    margin:16px 0 0 !important;
    padding:13px 12px !important;
    border-radius:11px !important;
    text-align:center;
    font:italic 13px/1.3 Georgia,serif !important;
  }
  html body .lc-mobile-panel .lc-menu-back {
    padding:10px 0 14px !important;
    font:600 16px/1.3 system-ui,-apple-system,'Segoe UI',sans-serif !important;
  }
  html body .lc-mobile-panel .lc-menu-subrow {
    display:block !important;
    min-height:56px !important;
    padding:11px 7px !important;
    font-size:15px !important;
  }
  html body .lc-mobile-panel .lc-menu-subrow small {
    margin-top:3px !important;
    font:400 11px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  .lc-mobile-panel * {scroll-behavior:auto !important;}
}

/* v2.8.4 — Seis acessos no menu inferior, sem remover Blog. */
@media(max-width:900px){
 html body .lc-bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:1px!important;padding-left:4px!important;padding-right:4px!important;}
 html body .lc-bottom-nav :is(a,button){min-width:0!important;padding:5px 0!important;font-size:clamp(8px,2.35vw,10px)!important;gap:3px!important;white-space:nowrap!important;}
 html body .lc-bottom-nav svg{width:19px!important;height:19px!important;}
}
@media(max-width:360px){html body .lc-bottom-nav svg{width:17px!important;height:17px!important;}}
