/*
Theme Name: Metric
Theme URI: https://metricweb.net/
Author: Metric di Giulio Cucchiaro
Author URI: https://metricweb.net/
Description: Tema WordPress leggero e moderno con gestione asset (CSS/JS) e menu tramite classi dedicate in /inc.
Version: 1.8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: metric
Tags: blog, custom-logo, editor-style, block-styles, accessibility-ready
*/

/* Questo file serve come "theme header" per WordPress.
   Gli stili reali stanno in /assets/css/main.css */

/* Cookie preferences stay in the normal page flow after the footer. */
body #mpai-root #mpai-reopen {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  display: block;
  max-width: calc(100% - 32px);
  margin: 16px auto 24px !important;
}

/* Keep lesson navigation within narrow screens, including Italian labels. */
@media (max-width: 576px) {
  body.single-lesson .tutor-learning-area-footer[data-lesson] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.single-lesson .tutor-learning-area-footer[data-lesson] > a:first-child {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  body.single-lesson .tutor-learning-area-footer[data-lesson] > a:last-child {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  body.single-lesson .tutor-learning-area-footer[data-lesson] > :not(a) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
  }

  body.single-lesson .tutor-learning-area-footer[data-lesson] > a,
  body.single-lesson .tutor-learning-area-footer[data-lesson] .tutor-mark-as-complete-button {
    min-width: 0;
    max-width: 100%;
  }
}
