.wiki-hub {
    width: 950px;
    margin: 0 auto;
    padding: 0 0.25rem 2.5rem;
  }

  .hub-head {
    margin: 0 auto 1.2rem;
    padding: 3rem 1rem 1.5rem;
  }

  .hub-title {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .hub-title-emoji{
    display:inline-block;
    transform-origin: 50% 90%;
    animation: hubEmojiPaper 5.6s ease-in-out infinite;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.12));
  }
  
  @keyframes hubEmojiPaper{
    0%{
      transform: translateY(0) rotate(0deg);
    }
    25%{
      transform: translateY(-2px) rotate(-0.8deg);
    }
    50%{
      transform: translateY(-4px) rotate(0.9deg);
    }
    75%{
      transform: translateY(-2px) rotate(-0.6deg);
    }
    100%{
      transform: translateY(0) rotate(0deg);
    }
  }
  
  @media (prefers-reduced-motion: reduce){
    .hub-title-emoji{
      animation: none;
    }
  }

  .hub-subtitle {
    margin-top: 0.35rem;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
  }

  .hub-updated{
    margin-top: .25rem;
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    gap: .35rem;
    line-height: 1.3;
    opacity: .9;

  }
  
  .hub-updated span{
    color: #555;
    font-weight: 500;
  }

  .dark-mode .hub-updated{
    color: #8b8b8b;
  }
  
  .dark-mode .hub-updated span{
    color: #b5b5b5;
  }

  .hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
  }

  .hub-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  }

  .hub-card:hover {
    transform: translateY(-1px);
    border-color: #d7d7d7;
    background: #f6f6f6;
  }

  .hub-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
  }

  .hub-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .hub-icon .material-symbols-outlined {
    font-size: 18px;
    color: #111;
  }

  .hub-text {
    min-width: 0;
    text-align: left;
  }

  .hub-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hub-desc {
    margin-top: 0.15rem;
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hub-arrow {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .hub-arrow .material-symbols-outlined {
    font-size: 18px;
    color: #666;
  }

  .hub-quick {
    margin-top: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .hub-chip {
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #111;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 12px;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
  }

  .hub-chip:hover {
    border-color: #d7d7d7;
    background: #f7f7f7;
  }

  .hub-card.is-disabled {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
  }

  .hub-card.is-disabled:hover {
    transform: none;
    border-color: inherit;
    background: inherit;
  }

  .hub-card.is-disabled .hub-arrow .material-symbols-outlined {
    color: #999;
  }

  .dark-mode .hub-subtitle { color: #bbb; }

  .dark-mode .hub-card {
    border-color: #333;
    background: #1a1a1a;
  }

  .dark-mode .hub-card:hover {
    border-color: #444;
    background: #202020;
  }

  .dark-mode .hub-icon,
  .dark-mode .hub-arrow {
    border-color: #444;
    background: #121212;
  }

  .dark-mode .hub-icon .material-symbols-outlined { color: #eee; }
  .dark-mode .hub-desc { color: #aaa; }
  .dark-mode .hub-arrow .material-symbols-outlined { color: #bbb; }

  .dark-mode .hub-chip {
    border-color: #333;
    background: #121212;
    color: #eee;
  }

  .dark-mode .hub-chip:hover {
    border-color: #444;
    background: #1a1a1a;
  }

  .dark-mode .hub-card.is-disabled {
    opacity: 0.45;
  }

  .dark-mode .hub-card.is-disabled .hub-arrow .material-symbols-outlined {
    color: #777;
  }

  @media (max-width: 1040px) {
    .wiki-hub { width: 92vw; }
  }

  @media (max-width: 760px) {
    .hub-grid { grid-template-columns: 1fr; }
  }

  /* ══════════════════════════════════════
     Mobile layout — Documentation Hub
  ═══════════════════════════════════════ */

  /* ── Tablet: 600–960px ── */
  @media (min-width: 600px) and (max-width: 960px) {
    .wiki-hub {
      width: 100%;
      max-width: 680px;
      padding: 0 2rem 3rem;
    }

    .hub-head {
      padding: 2.5rem 0 1.5rem;
    }

    .hub-title {
      font-size: 2.1rem;
    }

    .hub-subtitle {
      font-size: 1rem;
    }

    /* Single column — no orphaned card */
    .hub-grid {
      grid-template-columns: 1fr;
      gap: 0.75rem;
    }

    /* Wide, spacious cards */
    .hub-card {
      padding: 1.1rem 1.3rem;
      align-items: center;
    }

    .hub-left {
      gap: 1rem;
      align-items: center;
    }

    .hub-icon {
      width: 46px;
      height: 46px;
      border-radius: 13px;
      flex-shrink: 0;
    }

    .hub-icon .material-symbols-outlined {
      font-size: 22px;
    }

    .hub-name {
      font-size: 16px;
      white-space: normal;
    }

    .hub-desc {
      font-size: 13px;
      white-space: normal;
      margin-top: 0.2rem;
    }

    .hub-updated {
      font-size: 12.5px;
      margin-top: 0.3rem;
    }

    .hub-arrow {
      width: 32px;
      height: 32px;
    }

    .hub-arrow .material-symbols-outlined {
      font-size: 20px;
    }

    .hub-quick {
      margin-top: 1.1rem;
    }

    .hub-chip {
      padding: 0.45rem 1rem;
      font-size: 13px;
    }
  }

  /* ── Phone: <600px — single column ── */
  @media (max-width: 599px) {
    .wiki-hub {
      width: 100%;
      padding: 0 1rem 2rem;
    }

    .hub-head {
      padding: 1.8rem 0 1rem;
    }

    .hub-title {
      font-size: 1.7rem;
    }

    .hub-subtitle {
      font-size: 0.9rem;
    }

    .hub-grid {
      grid-template-columns: 1fr;
      gap: 0.75rem;
    }

    .hub-name {
      white-space: normal;
    }

    .hub-desc {
      white-space: normal;
    }
  }
  .hub-card{
    align-items: flex-start;
  }
  
  .hub-left{
    align-items: flex-start;
  }
  
  .hub-icon{
    margin-top: 2px;
  }