/* ============================================================
   FLAVOR THEME v2 — components.css
   "Vivid" — Cards, buttons, badges, hero, forms, pagination, etc.
   Tinted shadows, glassmorphism, gradient accents.
   ============================================================ */

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--t-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--t-radius-sm);
  cursor: pointer;
  transition: all var(--t-duration) var(--t-easing);
  text-decoration: none;
  line-height: 1.2;
  min-height: 44px;
}
.btn:focus-visible {
  outline: 2px solid var(--t-primary);
  outline-offset: 2px;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--t-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--t-shadow-hover);
}
.btn-primary:hover {
  background: var(--t-primary-hover);
  box-shadow: 0 6px 22px var(--t-shadow-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--t-surface-raised);
  color: var(--t-text);
  border: 1px solid var(--t-border);
}
.btn-secondary:hover {
  background: var(--t-surface-alt);
  border-color: var(--t-border-hover);
  box-shadow: 0 2px 8px var(--t-shadow);
}

.btn-outline {
  background: transparent;
  color: var(--t-primary);
  border: 2px solid var(--t-primary);
}
.btn-outline:hover {
  background: var(--t-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--t-shadow-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--t-text-secondary);
  border: none;
}
.btn-ghost:hover {
  background: var(--t-primary-light);
  color: var(--t-primary);
}

.btn-accent {
  background: var(--t-accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--t-shadow);
}
.btn-accent:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 22px var(--t-shadow-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  min-height: 36px;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  min-height: 52px;
}

.btn-loading { opacity: 0.7; pointer-events: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ----- Article Card — Vivid glass + tinted shadows ----- */
.card-article {
  display: flex;
  flex-direction: column;
  background: var(--t-surface-raised);
  border: 1px solid var(--t-border);
  border-radius: var(--t-border-radius);
  overflow: hidden;
  transition: transform var(--t-duration) var(--t-easing),
              box-shadow var(--t-duration) var(--t-easing),
              border-color var(--t-duration) var(--t-easing);
  box-shadow: 0 1px 3px var(--t-shadow);
}
.card-article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--t-shadow-hover), 0 4px 12px var(--t-shadow);
  border-color: var(--t-border-hover);
}

.card-article__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-duration-slow) var(--t-easing);
}
.card-article:hover .card-article__image img {
  transform: scale(1.04);
}

.card-article__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.card-article__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-article__title {
  font-family: var(--t-font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.625rem;
  color: var(--t-text);
}
.card-article__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-duration);
}
.card-article__title a:hover {
  color: var(--t-primary);
}

.card-article__excerpt {
  font-size: 0.9375rem;
  color: var(--t-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.card-article__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--t-text-muted);
}
.card-article__meta i {
  font-size: 0.75rem;
}

/* Card large (featured) */
.card-article--featured {
  grid-column: span 2;
}
.card-article--featured .card-article__image {
  aspect-ratio: 21/9;
}
.card-article--featured .card-article__title {
  font-size: 1.75rem;
}

/* ----- Page Card ----- */
.card-page {
  display: flex;
  flex-direction: column;
  background: var(--t-surface-raised);
  border: 1px solid var(--t-border);
  border-radius: var(--t-border-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px var(--t-shadow);
  transition: transform var(--t-duration) var(--t-easing),
              box-shadow var(--t-duration) var(--t-easing);
}
.card-page:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--t-shadow-hover), 0 4px 12px var(--t-shadow);
}
.card-page__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card-page__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-duration-slow) var(--t-easing);
}
.card-page:hover .card-page__image img {
  transform: scale(1.04);
}
.card-page__body {
  padding: 1.25rem;
}
.card-page__title {
  font-family: var(--t-font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card-page__excerpt {
  font-size: 0.9375rem;
  color: var(--t-text-secondary);
  line-height: 1.6;
}

/* ----- Badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--t-radius-pill);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: uppercase;
}
.badge-primary {
  background: var(--t-primary-light);
  color: var(--t-primary);
}
.badge-success {
  background: rgba(5,150,105,0.1);
  color: var(--t-success);
}
.badge-warning {
  background: rgba(217,119,6,0.1);
  color: var(--t-warning);
}
.badge-danger {
  background: rgba(220,38,38,0.1);
  color: var(--t-danger);
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--t-border);
  color: var(--t-text-secondary);
}

/* ----- Forms ----- */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--t-text);
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--t-text);
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm);
  transition: border-color var(--t-duration), box-shadow var(--t-duration);
  min-height: 44px;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--t-primary);
  box-shadow: 0 0 0 3px var(--t-primary-light);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--t-text-muted);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-error {
  font-size: 0.8125rem;
  color: var(--t-danger);
  margin-top: 0.375rem;
}
.form-input.is-error,
.form-textarea.is-error {
  border-color: var(--t-danger);
}

/* Checkbox / radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  min-height: 44px;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--t-primary);
}

/* ----- Hero sections ----- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Text-only hero — Vivid mesh bg */
.hero--text-only {
  min-height: 60vh;
  background: var(--t-surface);
  text-align: center;
  justify-content: center;
  padding: 6rem 1.5rem;
}
.hero--text-only .hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--t-font-heading);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  color: var(--t-text);
  letter-spacing: -0.02em;
}
.hero--text-only .hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--t-text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero--text-only .hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Image background hero */
.hero--image-bg {
  min-height: 70vh;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
}
.hero--image-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}
.hero--image-bg img.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero--image-bg .hero__content {
  position: relative;
  z-index: 2;
}
.hero--image-bg .hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--t-font-heading);
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero--image-bg .hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero--image-bg .hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Split hero */
.hero--split {
  min-height: 50vh;
  padding: 4rem 0;
}
.hero--split .hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: var(--t-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero--split .hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-family: var(--t-font-heading);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero--split .hero__subtitle {
  font-size: 1.0625rem;
  color: var(--t-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero--split .hero__image {
  border-radius: var(--t-border-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px var(--t-shadow-hover);
}
.hero--split .hero__image img {
  width: 100%;
  height: auto;
}
.hero--split .hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Minimal hero */
.hero--minimal {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--t-border);
  margin-bottom: 2rem;
}
.hero--minimal .hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-family: var(--t-font-heading);
}
.hero--minimal .hero__subtitle {
  font-size: 1rem;
  color: var(--t-text-secondary);
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .hero--split .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero--split .hero__image {
    order: -1;
  }
}

/* ----- Breadcrumbs ----- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--t-text-muted);
}
.breadcrumbs a {
  color: var(--t-text-secondary);
  transition: color var(--t-duration);
}
.breadcrumbs a:hover {
  color: var(--t-primary);
}
.breadcrumbs .separator {
  color: var(--t-text-muted);
}
.breadcrumbs .current {
  color: var(--t-text);
  font-weight: 500;
}

/* ----- Pagination ----- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 3rem 0;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--t-radius-sm);
  border: 1px solid var(--t-border);
  color: var(--t-text-secondary);
  background: var(--t-surface);
  transition: all var(--t-duration) var(--t-easing);
}
.pagination a:hover {
  border-color: var(--t-border-hover);
  color: var(--t-primary);
  background: var(--t-primary-light);
  box-shadow: 0 2px 8px var(--t-shadow);
}
.pagination .active {
  background: var(--t-primary);
  border-color: var(--t-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--t-shadow-hover);
}
.pagination .dots {
  border: none;
  background: none;
  color: var(--t-text-muted);
}

/* ----- Reading progress bar ----- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--t-primary), var(--t-accent));
  z-index: 110;
  width: 0%;
  transition: width 50ms linear;
}

/* ----- Back to top ----- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--t-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-duration), visibility var(--t-duration), transform var(--t-duration), box-shadow var(--t-duration);
  box-shadow: 0 4px 14px var(--t-shadow-hover);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--t-shadow-hover);
}

/* ----- Tags list ----- */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--t-text-secondary);
  background: var(--t-surface-alt);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-pill);
  transition: all var(--t-duration);
}
.tags-list a:hover {
  color: var(--t-primary);
  border-color: var(--t-border-hover);
  background: var(--t-primary-light);
  box-shadow: 0 2px 8px var(--t-shadow);
}

/* ----- Share buttons ----- */
.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--t-radius-sm);
  font-size: 1rem;
  border: 1px solid var(--t-border);
  background: var(--t-surface);
  color: var(--t-text-secondary);
  cursor: pointer;
  transition: all var(--t-duration);
}
.share-btn:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--t-shadow);
}
.share-btn--x:hover { background: #000; }
.share-btn--facebook:hover { background: #1877f2; }
.share-btn--linkedin:hover { background: #0a66c2; }
.share-btn--copy:hover { background: var(--t-primary); }

/* ----- TOC sidebar ----- */
.toc-sidebar {
  position: sticky;
  top: calc(var(--t-header-height) + 2rem);
  max-height: calc(100vh - var(--t-header-height) - 4rem);
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--t-surface-raised);
  border: 1px solid var(--t-border);
  border-radius: var(--t-border-radius);
  box-shadow: 0 1px 3px var(--t-shadow);
}
.toc-sidebar h4 {
  font-family: var(--t-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--t-text-muted);
  margin-bottom: 1rem;
}
.toc-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  border-left: 2px solid var(--t-border);
}
.toc-link {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--t-text-secondary);
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all var(--t-duration);
  line-height: 1.4;
}
.toc-link:hover {
  color: var(--t-text);
}
.toc-link.is-active {
  color: var(--t-primary);
  border-left-color: var(--t-primary);
  font-weight: 500;
}
.toc-link--h3 {
  padding-left: 1.5rem;
  font-size: 0.8125rem;
}

/* ----- Empty state ----- */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
}
.empty-state__icon {
  font-size: 3rem;
  color: var(--t-text-muted);
  margin-bottom: 1.5rem;
}
.empty-state__title {
  font-size: 1.5rem;
  font-family: var(--t-font-heading);
  margin-bottom: 0.5rem;
}
.empty-state__text {
  color: var(--t-text-secondary);
  margin-bottom: 1.5rem;
}

/* ----- Theme toggle ----- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: var(--t-radius-sm);
  cursor: pointer;
  color: var(--t-text-secondary);
  transition: background var(--t-duration), color var(--t-duration);
  font-size: 1.125rem;
}
.theme-toggle:hover {
  background: var(--t-primary-light);
  color: var(--t-primary);
}

/* ----- Section spacing ----- */
.section {
  padding: 5rem 0;
}
.section--alt {
  background: var(--t-surface-alt);
}
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-family: var(--t-font-heading);
  margin-bottom: 0.75rem;
}
.section__subtitle {
  font-size: 1.0625rem;
  color: var(--t-text-secondary);
  line-height: 1.6;
}

/* ----- CTA section — Vivid gradient ----- */
.cta-section {
  padding: 4rem;
  background: linear-gradient(135deg, var(--t-primary), var(--t-accent));
  border-radius: var(--t-border-radius);
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 30px var(--t-shadow-hover);
}
.cta-section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--t-font-heading);
  margin-bottom: 0.75rem;
  color: #fff;
}
.cta-section__text {
  font-size: 1.0625rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn {
  background: #fff;
  color: var(--t-primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.cta-section .btn:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 22px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

/* ----- Service card ----- */
.service-card {
  padding: 2rem;
  background: var(--t-surface-raised);
  border: 1px solid var(--t-border);
  border-radius: var(--t-border-radius);
  transition: transform var(--t-duration), box-shadow var(--t-duration);
  text-align: center;
  box-shadow: 0 1px 3px var(--t-shadow);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--t-shadow-hover), 0 4px 12px var(--t-shadow);
}
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: var(--t-radius-sm);
  background: linear-gradient(135deg, var(--t-primary-light), rgba(139,92,246,0.08));
  color: var(--t-primary);
  font-size: 1.5rem;
}
.service-card__title {
  font-family: var(--t-font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.service-card__text {
  font-size: 0.9375rem;
  color: var(--t-text-secondary);
  line-height: 1.6;
}

/* ----- FAQ accordion ----- */
.faq-item {
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow var(--t-duration);
}
.faq-item:hover {
  box-shadow: 0 2px 8px var(--t-shadow);
}
.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--t-text);
  background: var(--t-surface);
  border: none;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
  transition: background var(--t-duration);
}
.faq-item__trigger:hover {
  background: var(--t-primary-light);
}
.faq-item__icon {
  font-size: 0.875rem;
  transition: transform var(--t-duration);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
}
.faq-item__content {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--t-text-secondary);
  line-height: 1.7;
}

/* ----- Testimonial card ----- */
.testimonial-card {
  padding: 2rem;
  background: var(--t-surface-raised);
  border: 1px solid var(--t-border);
  border-radius: var(--t-border-radius);
  box-shadow: 0 1px 3px var(--t-shadow);
}
.testimonial-card__text {
  font-size: 1rem;
  color: var(--t-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--t-accent);
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
}
.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--t-text-muted);
}

/* ----- Counter ----- */
.counter-item {
  text-align: center;
  padding: 2rem;
}
.counter-item__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--t-primary);
  font-family: var(--t-font-body);
}
.counter-item__label {
  font-size: 0.9375rem;
  color: var(--t-text-secondary);
  margin-top: 0.5rem;
}

/* ----- Team member ----- */
.team-member {
  text-align: center;
}
.team-member__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--t-border);
  box-shadow: 0 4px 14px var(--t-shadow);
}
.team-member__name {
  font-family: var(--t-font-heading);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.team-member__role {
  font-size: 0.875rem;
  color: var(--t-text-muted);
  margin-bottom: 0.5rem;
}
.team-member__bio {
  font-size: 0.875rem;
  color: var(--t-text-secondary);
  line-height: 1.6;
}

/* ----- Timeline ----- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--t-primary), var(--t-accent));
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--t-primary);
  border: 2px solid var(--t-surface);
  margin-left: -5px;
  box-shadow: 0 0 0 3px var(--t-primary-light);
}
.timeline-item__date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--t-primary);
  margin-bottom: 0.5rem;
}
.timeline-item__title {
  font-family: var(--t-font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.timeline-item__text {
  font-size: 0.9375rem;
  color: var(--t-text-secondary);
  line-height: 1.6;
}

/* ----- Portfolio ----- */
.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.portfolio-filter {
  padding: 0.5rem 1.25rem;
  border-radius: var(--t-radius-pill);
  border: 1px solid var(--t-border);
  background: var(--t-surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t-text-secondary);
  cursor: pointer;
  transition: all var(--t-duration);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.portfolio-filter:hover,
.portfolio-filter.is-active {
  background: var(--t-primary);
  border-color: var(--t-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--t-shadow-hover);
}

.portfolio-item {
  position: relative;
  border-radius: var(--t-border-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px var(--t-shadow);
}
.portfolio-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--t-duration-slow);
}
.portfolio-item:hover img {
  transform: scale(1.05);
}
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: var(--t-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-duration);
}
.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}
.portfolio-item__title {
  font-family: var(--t-font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.portfolio-item__cat {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.8);
}

/* ----- Article meta ----- */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--t-text-muted);
  margin: 1rem 0 2rem;
}
.article-meta__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-meta__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.article-meta__name {
  font-weight: 500;
  color: var(--t-text);
}
.article-meta__sep {
  color: var(--t-border-hover);
}

/* ----- Category pills ----- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--t-radius-pill);
  border: 1px solid var(--t-border);
  background: var(--t-surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t-text-secondary);
  transition: all var(--t-duration);
  min-height: 44px;
}
.category-pill:hover {
  border-color: var(--t-border-hover);
  color: var(--t-primary);
  background: var(--t-primary-light);
  box-shadow: 0 2px 8px var(--t-shadow);
}

/* ----- Search form ----- */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
}
.search-form .form-input {
  flex: 1;
}
