/* All styles scoped to .tg-wrapper to avoid conflicts */
  .tg-wrapper *,
  .tg-wrapper *::before,
  .tg-wrapper *::after {
    box-sizing: border-box;
  }

  .tg-wrapper {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a18;
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1rem 5rem;
  }

  /* Page heading */
  .tg-heading {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #d9d7d0;
  }

  .tg-heading h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: #1a1a18;
    margin: 0 0 0.4rem;
    padding: 0;
    border: none;
    background: none;
  }

  .tg-heading p {
    font-size: 15px;
    color: #6b6b65;
    margin: 0;
  }

  /* Section */
  .tg-section {
    margin-bottom: 2.5rem;
  }

  .tg-section-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9e9d97;
    margin: 0 0 1rem;
    display: block;
  }

  /* Cards grid */
  .tg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }

  .tg-card {
    background: #ffffff;
    border: 1px solid #e3e1db;
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .tg-card:hover {
    border-color: #b0aeaa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
  }

  .tg-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .tg-icon-journal    { background: #ddeef9; }
  .tg-icon-presentation { background: #fdefd8; }

  .tg-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a18;
    margin: 0;
  }

  .tg-card-desc {
    font-size: 13px;
    color: #6b6b65;
    flex: 1;
    margin: 0;
  }

  .tg-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #eeecea;
    font-size: 12px;
    color: #9e9d97;
    gap: 8px;
  }

  .tg-footer-left {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .tg-dl-icon {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
  }

  .tg-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
  }

  .tg-badge-journal { background: #ddeef9; color: #1a5f99; }
  .tg-badge-ppt     { background: #fdefd8; color: #8a4f0a; }

  @media (max-width: 480px) {
    .tg-heading h2 { font-size: 1.5rem; }
    .tg-grid { grid-template-columns: 1fr; }
  }