/* Tariro Stories: tariro.co styles for posts, the Stories page and the [tariro_stories] grid */
.ts-scope {
  --ts-teal: #0E7C7B; --ts-teal-dark: #0A6665; --ts-ink: #1E2B2B; --ts-body: #3F5050; --ts-muted: #566666;
  --ts-bg: #F4FAF9; --ts-mint: #E3F3F1; --ts-mint-2: #DFF1EE; --ts-line: #D5EAE7; --ts-white: #FFFFFF;
  --ts-gold: #D2AC47; --ts-gold-deep: #926F34; --ts-gold-light: #FAF398;
  --ts-gold-gradient: linear-gradient(90deg, #AE8625, #F7EF8A, #D2AC47, #EDC967);
  --ts-head: "Quicksand", "Nunito", sans-serif; --ts-text: "Nunito", sans-serif;
  font-family: var(--ts-text);
  color: var(--ts-body);
}
.ts-scope *, .ts-scope *::before, .ts-scope *::after { box-sizing: border-box; }
.ts-scope a { text-decoration: none; }
.ts-scope a.ts-card, .ts-scope a.ts-featured, .ts-scope a.ts-card:hover, .ts-scope a.ts-featured:hover { color: inherit; }
.ts-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ts-h2 { margin: 0 0 40px; font-family: var(--ts-head); font-weight: 300; font-size: clamp(30px, 3vw, 40px); line-height: 1.2; color: var(--ts-ink); }
.ts-meta { display: block; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ts-gold-deep); }
.ts-rule { display: block; width: 56px; height: 2px; background: var(--ts-gold-gradient); }

/* Buttons */
.ts-btn { display: inline-block; font-family: var(--ts-head); font-weight: 600; font-size: 15px; line-height: 1.2; border-radius: 12px; padding: 12px 24px; transition: background-color .2s ease, color .2s ease; }
.ts-scope .ts-btn--outline { border: 1.5px solid var(--ts-teal); color: var(--ts-teal); background: transparent; }
.ts-scope .ts-btn--outline:hover, .ts-scope .ts-btn--outline:focus-visible { background: var(--ts-teal); color: var(--ts-white); }

/* Cards (grid, homepage shortcode, more stories) */
.ts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ts-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: 20px;
  color: inherit; transition: transform .25s ease, box-shadow .25s ease;
}
.ts-card:hover, .ts-card:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(14, 124, 123, .12); color: inherit; }
.ts-card__image { display: block; aspect-ratio: 16 / 10; background: var(--ts-mint-2); overflow: hidden; }
.ts-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-card__placeholder { display: block; width: 100%; height: 100%; background: var(--ts-mint-2); }
.ts-card__bar { display: block; height: 3px; background: var(--ts-gold-gradient); }
.ts-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 28px; flex-grow: 1; }
.ts-card__title { display: block; font-family: var(--ts-head); font-size: 21px; font-weight: 500; line-height: 1.35; color: var(--ts-ink); }

/* Stories page */
.ts-archive { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 7vw, 104px); background: var(--ts-bg); }
.ts-archive__header { margin-bottom: 48px; }
.ts-archive__title { margin: 0 0 16px; font-family: var(--ts-head); font-weight: 300; font-size: clamp(38px, 4.2vw, 60px); line-height: 1.1; letter-spacing: -1px; color: var(--ts-ink); }
.ts-archive__intro { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.7; color: var(--ts-body); }

.ts-featured {
  display: flex; flex-wrap: wrap; overflow: hidden; margin-bottom: 0;
  background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: 28px; color: inherit;
  transition: box-shadow .25s ease;
}
.ts-featured:hover, .ts-featured:focus-visible { box-shadow: 0 14px 34px rgba(14, 124, 123, .12); color: inherit; }
.ts-featured__image { flex: 1 1 520px; min-height: 280px; background: var(--ts-mint-2); }
.ts-featured__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-featured__body { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 3vw, 44px); }
.ts-featured__title { display: block; font-family: var(--ts-head); font-weight: 400; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.2; color: var(--ts-ink); }
.ts-featured__excerpt { display: block; font-size: 17px; line-height: 1.7; color: var(--ts-body); }

.ts-filter {
  display: flex; flex-wrap: nowrap; gap: 32px; overflow-x: auto; scrollbar-width: none;
  margin: 64px 0 36px; border-bottom: 1px solid var(--ts-line);
}
.ts-filter::-webkit-scrollbar { display: none; }
.ts-scope .ts-filter a {
  flex-shrink: 0; white-space: nowrap; padding: 0 0 14px; margin-bottom: -1px;
  font-family: var(--ts-head); font-size: 17px; font-weight: 500; color: var(--ts-muted);
  border-bottom: 2px solid transparent;
}
.ts-scope .ts-filter a:hover { color: var(--ts-teal); }
.ts-scope .ts-filter a[aria-current="page"] { color: var(--ts-teal); font-weight: 600; border-bottom-color: var(--ts-gold); }

.ts-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 56px; }
.ts-scope .ts-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 16px;
  border: 1.5px solid var(--ts-line); border-radius: 12px; font-family: var(--ts-head); font-weight: 600; font-size: 15px; color: var(--ts-teal);
}
.ts-pagination a.page-numbers:hover { border-color: var(--ts-teal); }
.ts-scope .ts-pagination .page-numbers.current { background: var(--ts-teal); border-color: var(--ts-teal); color: var(--ts-white); }
.ts-pagination .page-numbers.dots { border: 0; min-width: 0; padding: 0 4px; }
.ts-empty { font-size: 18px; color: var(--ts-muted); }

/* Single story */
.ts-single { background: var(--ts-bg); padding: clamp(40px, 5vw, 72px) 0 0; }
.ts-article { max-width: 808px; margin: 0 auto; padding: 0 24px; }
.ts-crumb { margin: 0 0 20px; font-family: var(--ts-head); font-size: 15px; font-weight: 600; }
.ts-scope .ts-crumb a { color: var(--ts-gold-deep); }
.ts-scope .ts-crumb a:hover { color: var(--ts-teal); }
.ts-article__title { margin: 0 0 18px; font-family: var(--ts-head); font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.15; letter-spacing: -1px; color: var(--ts-ink); }
.ts-article__meta { margin: 0 0 36px; font-size: 15px; color: var(--ts-muted); }

.ts-player { margin: 0 0 44px; overflow: hidden; background: var(--ts-teal); border-radius: 24px; }
.ts-player__bar { display: block; height: 5px; background: var(--ts-gold-gradient); }
.ts-player__inner { padding: 22px 28px 26px; }
.ts-player__label { margin: 0 0 14px; font-family: var(--ts-head); font-size: 18px; font-weight: 500; color: var(--ts-white); }
.ts-player__embed { position: relative; height: 230px; border-radius: 12px; overflow: hidden; background: var(--ts-white); }
.ts-player__embed iframe { position: absolute !important; inset: 0 !important; display: block; width: 100% !important; height: 100% !important; max-width: 100%; border: 0; }
@media (max-width: 600px) { .ts-player__embed { height: 340px; } }

.ts-article__image { margin: 0 0 44px; }
.ts-article__image img { display: block; width: 100%; height: auto; border-radius: 20px; }

.ts-article__body { font-size: 19px; line-height: 1.85; color: #2E3D3D; }
.ts-article__body > * { margin-top: 0; margin-bottom: 26px; }
.ts-article__body p { margin: 0 0 26px; }
.ts-article__body h2, .ts-article__body h3, .ts-article__body h4 { font-family: var(--ts-head); color: var(--ts-ink); line-height: 1.3; margin: 48px 0 18px; }
.ts-article__body h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; }
.ts-article__body h3 { font-size: 23px; font-weight: 500; }
.ts-article__body h4 { font-size: 20px; font-weight: 600; }
.ts-scope .ts-article__body a { color: var(--ts-teal); text-decoration: underline; text-decoration-color: var(--ts-gold); text-underline-offset: 3px; }
.ts-article__body ul, .ts-article__body ol { padding-left: 1.3em; }
.ts-article__body li { margin-bottom: 10px; }
.ts-article__body li::marker { color: var(--ts-gold-deep); }
.ts-article__body blockquote, .ts-article__body .wp-block-quote, .ts-article__body .wp-block-pullquote {
  margin: 44px 0; padding: 6px 0 6px 30px; border: 0; border-left: 3px solid var(--ts-gold); text-align: left;
  font-family: var(--ts-head); font-size: clamp(22px, 2.2vw, 27px); font-weight: 300; line-height: 1.45; color: var(--ts-teal);
}
.ts-article__body blockquote p { margin: 0 0 10px; }
.ts-article__body blockquote cite { display: block; font-family: var(--ts-text); font-size: 15px; font-style: normal; color: var(--ts-muted); }
.ts-article__body img { max-width: 100%; height: auto; border-radius: 16px; }
.ts-article__body figure { margin: 36px 0; }
.ts-article__body figcaption { font-size: 14px; color: var(--ts-muted); text-align: center; margin-top: 10px; }
.ts-article__body iframe { max-width: 100%; border-radius: 12px; }
.ts-article__body hr { border: 0; height: 2px; width: 72px; background: var(--ts-gold-gradient); margin: 44px 0; }

.ts-author {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  margin: 64px 0 0; padding: 32px 0; border-top: 1px solid var(--ts-line); border-bottom: 1px solid var(--ts-line);
}
.ts-author__photo { width: 88px !important; height: 88px !important; border-radius: 50% !important; object-fit: cover; object-position: 58% 10%; border: 2px solid var(--ts-gold); }
.ts-author__text { flex: 1 1 300px; min-width: 0; }
.ts-author__name { margin: 0 0 6px; font-family: var(--ts-head); font-size: 20px; font-weight: 600; color: var(--ts-ink); }
.ts-author__line { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--ts-body); }

.ts-more { padding: clamp(56px, 6vw, 88px) 0 clamp(64px, 7vw, 96px); }

/* Tablet and phone */
@media (max-width: 1024px) {
  .ts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ts-wrap, .ts-article { padding: 0 20px; }
  .ts-grid { grid-template-columns: 1fr; gap: 24px; }
  .ts-featured__image { min-height: 220px; flex-basis: 100%; }
  .ts-filter { margin: 48px 0 28px; gap: 26px; }
  .ts-article__body { font-size: 18px; }
  .ts-player__inner { padding: 18px 18px 20px; }
  .ts-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-card, .ts-featured { transition: none; }
  .ts-card:hover { transform: none; }
}
