@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: "Roboto", "Noto Sans TC", sans-serif;
  line-height: 1.6;
}

.header__logo-text {
  font-family: "Roboto", "Noto Sans TC", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.header__logo-text small {
  font-family: "Roboto", "Noto Sans TC", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.header--scrolled .header__logo-text {
  font-size: 0.9rem;
}
.header--scrolled .header__logo-text small {
  font-size: 0.6rem;
}

.nav__link {
  font-size: 1rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  letter-spacing: 0em;
}
.header--scrolled .nav__link {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* 桌機版：日期+分類同行，標題獨立一行 */
.news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
}

.news-item__date {
  min-width: unset;
}

.news-item__tag {
  width: fit-content;
  padding: 2px 8px;
  font-size: 0.7rem;
}

.news-item__title {
  flex-basis: 100%;
  line-height: 1.5;
  font-size: 0.9375rem;
}

.page-content p {
  line-height: 1.7;
}

.page-content .team-card__name {
  letter-spacing: 0;
}

.page-content h3 {
  letter-spacing: 0;
}

.team-card .team-card__badge {
  letter-spacing: 0;
}

.header__top .header__search-input {
  line-height: 1;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.footer__name {
  font-size: 1.2rem;
}

.course-card__title {
  line-height: 1.4;
}
.page-content .course-card__title {
  line-height: 1.2;
}
.link-card__title {
  line-height: 1.3;
}

.link-card__body {
  padding: var(--space-3) var(--space-2) var(--space-4);
}

.course-card__desc {
  font-size: 0.9rem;
}

.footer__heading {
  line-height: 1.4;
}

.news-tabs__btn {
  padding: var(--space-3) var(--space-8) var(--space-2);
  line-height: 1.6;
}

/* 手機版 */
@media (max-width: 767px) {
  .nav__link {
    font-size: 1.25rem;
  }

  .header__logo-text,
  .header--scrolled .header__logo-text {
    font-size: 1rem !important;
    line-height: 1.1 !important;
  }

  .header__logo-text small,
  .header--scrolled .header__logo-text small {
    font-size: 0.62rem !important;
  }

  .news-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
  }

  .news-item__tag {
    margin-left: 0;
  }

  .news-item__title {
    flex-basis: 100%;
  }

  .footer__info {
    line-height: 1.6;
    font-size: 0.9rem;
  }

  .footer__brand {
    gap: var(--space-2);
  }

  .footer__info-item {
    gap: var(--space-1);
  }

  .footer__name {
    font-size: 1rem;
  }

  .page-content p {
    line-height: 1.7;
  }

  .btn {
    line-height: 1.2;
  }

  .btn--icon .icon--sm {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .workshop-detail__info-item {
    font-size: 0.85rem;
    gap: var(--space-2);
  }

  .workshop-detail__info-label {
    min-width: auto;
  }
}

/* 首頁輪播標題：英文句子較長，字級縮一級、行高收緊 */
.hero__slide-title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  line-height: 1.15;
  letter-spacing: 0;
}
