    /* ===== Header (match ELTGallery style) ===== */

    .header {
        background: transparent;
        display: flex;
        margin-top: 1px; ;
        justify-content: space-between;
        align-items: center;
        padding: 4px;
    }
    

    .header .title {
        font-size: clamp(2rem, 4vw, 3rem); 
        font-weight: bold;
        text-align: center;
        margin-top: 2px;
        color: black;
    }
    .subtitle {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        margin-top: -10px;
        font-size: clamp(0.9rem, 2vw, 1.2rem);
        font-weight: 400;
        text-align: center;
        margin-bottom: 1px; 
        color: black;
    }

    .header img { 
        width: clamp(3.5rem, 6vw, 5rem);
        height: auto;}

    /* ===== Page wrapper ===== */
    body{
        min-height: 100vh;
        background: linear-gradient(180deg, #fff8e1 0%, #ffe0b2 100%);
        background-attachment: fixed; /* ensures it stays put while scrolling */
        color:var(--ink);
        font:16px system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, "Apple Color Emoji","Segoe UI Emoji";
        -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
    }
    .sm-menu-wrapper {
      max-width: 900px;
      margin: 26px auto;
      padding: 10px 18px 26px;
      border: 1 px solid grey;
    }

    
    .menu-title {
      width: clamp(18rem, 80vw, 49rem);
      margin-left: auto;
      margin-right: auto;
      font-size: 1.3rem;
      font-weight: 750;
      border: 1px  solid white;
      margin: 8px 0 12px 0;
      text-align: center;
      justify-content: center;
      gap: 5px;
      color: #111;
    }
    
    .menu-subtitle {
      width: clamp(18rem, 80vw, 49rem);
      margin-left: auto;
      margin-right: auto;
      font-size: 0.95rem;
      font-weight: 500;
      color: #555;
    }

    /* ===== Grid ===== */
    .sm-grid {
      width: clamp(18rem, 80vw, 50rem);
      margin-left: auto;
      margin-right: auto;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 14px;
      margin-top: 10px;
      background: linear-gradient(180deg, #f2f2f2, #c5c5c5); 
      border:1px solid var(--ring);
      border-radius:16px; padding:12px; box-shadow:0 8px 24px rgba(0,0,0,.32);
    }
    
    /* ===== Pills ===== */
    .sm-pill {
      display: block;
      color: #fff;
      background: #00ce00;
      border-radius: 14px;
      padding: 14px 10px;
      text-align: center;
      font-weight: 650;
      text-decoration: none;
      transition: transform 0.1s ease, background 0.15s ease;
      user-select: none;
      box-shadow: 0 2px 0 rgba(0,0,0,0.08);
    }
    
    .sm-pill {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 14px;
        border-radius: 8px;
        font-weight: 700;
        background:#008e47; /* default strong color */
        color: white;
        text-decoration: none;
        transition: 0.2s;
    }


    /* Lighter color for columns 2–5 */
    .sm-pill:not(:nth-child(5n+1)) {
        background: #cfd8dc;  /* light grey */
        color: #555;
        background: #00ee77;
    }    
    
    .sm-pill:nth-child(5n+1)::before {
        content: "➜ ";
        font-size: 16px;
    }    


    .sm-pill:hover {
      background: #0bb20b;
      transform: translateY(-2px);
    }
    .sm-pill:active {
      transform: translateY(0);
    }

.sm-pill.locked {
  background: #ddd;
  color: #888;
  cursor: not-allowed;
  pointer-events: none;
}

    /* ===== Nav ===== */
    .sm-nav {
      width: clamp(16rem, 80vw, 50rem);
      margin-left: auto;
      margin-right: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 18px;
      gap: 16px;
    }
    .nav-btn {
      background: #0a8f08;
      color: #fff;
      border: none;
      border-radius: 15%;
      width: 40px;
      height: 40px;
      font-size: clamp(0.9rem, 2vw, 1.7rem);
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 0 rgba(0,0,0,0.08);
    }
    .nav-btn.disabled {
      opacity: 0.4;
      cursor: not-allowed;
      pointer-events: none;
    }
    .page-info {
      min-width: 140px;
      width: clamp(8rem, 30vw, 30rem);
      font-size: 0.95rem;
      color: #444;
      text-align: center;
      background: #fff;
      padding: 8px 10px;
      border-radius: 12px;
      border: 1px solid rgba(0,0,0,0.06);
    }

    /* ===== Responsive ===== */
    @media (max-width: 900px) {
      .sm-grid { grid-template-columns: repeat(3, 1fr); }
      .header img { height: 46px; }
      .header .title { font-size: 1.5rem; }
    }
    @media (max-width: 600px) {
      .sm-grid { grid-template-columns: repeat(2, 1fr); }
      .page-info { min-width: 150px; }
      .header { padding: 10px 12px; }
      .header img { height: 42px; }
      .header .title { font-size: 1.2rem; }
      .header .img img { width: 46px; height: 46px; }
      .nav-btn {min-width: 40px;}
    }