
/* mobile layout rules */
@media (max-width: 880px) {


  
  .page {
    flex-direction: column;
    margin-top: 20px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    border-radius: 0 18px 18px 0;
    box-shadow: var(--shadow-soft);
    transform: translateX(-100%);
    transition: transform 0.25s ease !important;
    z-index: 9500 !important;
    border-radius: 0 18px 18px 0 !important;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06) !important;
    background: #fff !important;
    overflow-y: auto !important;

  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: none;
    padding-top: 0;
    overflow: visible;
  }

  .sidebar-nav li {
    margin-bottom: 0;
    flex: none;
  }

  

  .sidebar-link {
    font-size: 12px;
    padding: 6px 8px;
  }

  .two-column,
  .two-column--reverse {
    grid-template-columns: minmax(0, 1fr);
  }


  .type-table thead { display: none; }

  /* Turn each row into a card */
  .type-table tbody tr {
    display: block;
    margin-bottom: 14px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
    overflow: hidden;
    padding: 12px;
    border: 1px solid #f1f1f1;
  }

  .prototype-cta {
  margin-top: 8px;
  margin-bottom: 12px;
  margin-left: 10%;
  /* padding: 12px 14px; */
  border-radius: 14px;
  background: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.4);
  /* font-size: 19px; */
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
}
  
  /* Make each cell a stacked block with label above the value */
  .type-table td {
    display: block;
    padding: 8px 0;
    border-top: none;
    font-size: 15px;            /* slightly larger for mobile readability */
    line-height: 1.35;
  }

  /* Small visual hint for usage / secondary text */
  .type-table td:nth-child(5) { 
    color: var(--text-muted);
    font-size: 14px;
  }

  /* Add label before each td using nth-child mapping (no HTML changes required) */
  .type-table td:nth-child(1)::before { content: "Style"; display:block; font-size:12px; color:#6b7280; margin-bottom:6px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em;}
  .type-table td:nth-child(2)::before { content: "Typeface"; display:block; font-size:12px; color:#6b7280; margin-bottom:6px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em;}
  .type-table td:nth-child(3)::before { content: "Size"; display:block; font-size:12px; color:#6b7280; margin-bottom:6px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em;}
  .type-table td:nth-child(4)::before { content: "Weight"; display:block; font-size:12px; color:#6b7280; margin-bottom:6px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em;}
  .type-table td:nth-child(5)::before { content: "Usage"; display:block; font-size:12px; color:#6b7280; margin-bottom:6px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em;}

  /* Make the first column (Style) slightly larger / prominent */
  .type-table td:nth-child(1) { font-weight:700; font-size:16px; color: #111827; margin-bottom:6px; }

  /* Improve touch targets (if you later make rows tappable) */
  .type-table tbody tr { -webkit-tap-highlight-color: rgba(0,0,0,0.06); }
  
  /* ensure hamburger on top */
  .menu-toggle {
    z-index: 99999 !important;
    position: fixed !important;
    top: 16px !important;
    left: 16px !important;
    display: inline-flex !important;
  }

  /* backdrop must be below hamburger but above page */
  .sidebar-backdrop,
  #sidebarBackdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.28) !important; /* lighter while debugging */
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 9000 !important;
    transition: opacity 0.18s ease !important;
  }
  .sidebar-backdrop.active,
  #sidebarBackdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }



  /* when open, slide in */
  .sidebar.open {
    transform: translateX(0) !important;
  }
  /* show hamburger on mobile */
  .menu-toggle { display: inline-flex; }

  /* page becomes column */
  .page { flex-direction: column; margin: 0; padding: 0 12px 24px; max-width: 100%; }

  /* place sidebar as drawer (hidden by default) */


  /* main content full width */
  .content {
    width: 100%;
  }

  /* your existing grid responsiveness can stay */
  .two-column,
  .two-column--reverse {
    grid-template-columns: minmax(0, 1fr);
  }


  .matrix-row.matrix-row--header { grid-template-columns: 1fr; text-align: left; gap: 8px; padding: 10px; }
  .matrix-row { grid-template-columns: 1fr; }
  .matrix-row .matrix-cell { font-size: 14px; }
  .matrix-row .matrix-cell + .matrix-cell { margin-top: 6px; }
  .matrix-row .matrix-cell:last-child { margin-top: 8px; }
  .matrix-row .matrix-cell .matrix-badge { margin-top: 8px; }
}



