/* =====================================================
   TTB Research Page Styles (TTB-535)
   Modern, scholarly, accessible layout for /research/
   aligned with TTB Design System v1.3.0 tokens.
   ===================================================== */

.ttb-research-sec {
  --ttb-res-forest: #2E4936;
  --ttb-res-moss: #526747;
  --ttb-res-cedar: #8B755E;
  --ttb-res-paper: #F4EFE3;
  --ttb-res-cream: #FAF8F5;
  --ttb-res-white: #FFFFFF;
  --ttb-res-charcoal: #30352F;
  --ttb-res-body: #454B44;
  --ttb-res-line: rgba(111, 130, 99, 0.35);
  --ttb-res-head: 'Inter', system-ui, -apple-system, sans-serif;
  --ttb-res-font: 'Noto Sans', system-ui, -apple-system, sans-serif;

  box-sizing: border-box;
  background: var(--ttb-res-paper);
  color: var(--ttb-res-charcoal);
  font-family: var(--ttb-res-font);
  padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(64px, 8vw, 96px);
  width: 100%;
}

.ttb-research-sec *,
.ttb-research-sec *::before,
.ttb-research-sec *::after {
  box-sizing: border-box;
}

.ttb-research-inner {
  margin: 0 auto;
  max-width: 1140px;
}

/* Header */
.ttb-research-header {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 860px;
}

.ttb-research-eyebrow {
  display: block;
  font-family: var(--ttb-res-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ttb-res-moss);
  margin-bottom: 0.65rem;
}

.ttb-research-title {
  font-family: var(--ttb-res-head);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ttb-res-forest);
  margin: 0 0 1rem 0;
}

.ttb-research-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--ttb-res-body);
  margin: 0 0 1.5rem 0;
}

.ttb-research-profile-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-top: 1.25rem;
}

.ttb-research-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--ttb-res-line);
  color: var(--ttb-res-forest);
  font-family: var(--ttb-res-head);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ttb-research-pill:hover {
  background: var(--ttb-res-white);
  border-color: var(--ttb-res-moss);
  color: var(--ttb-res-moss);
  transform: translateY(-1px);
}

/* Dissertation Hero Card */
.ttb-research-dissertation {
  background: var(--ttb-res-white);
  border: 1px solid var(--ttb-res-line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(36px, 5vw, 56px);
  box-shadow: 0 4px 20px rgba(46, 73, 54, 0.04);
}

.ttb-research-dissertation__badge {
  display: inline-block;
  background: rgba(82, 103, 71, 0.12);
  color: var(--ttb-res-moss);
  font-family: var(--ttb-res-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.ttb-research-dissertation__title {
  font-family: var(--ttb-res-head);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ttb-res-forest);
  margin: 0 0 0.65rem 0;
}

.ttb-research-dissertation__meta {
  font-family: var(--ttb-res-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ttb-res-cedar);
  margin: 0 0 1.25rem 0;
}

.ttb-research-dissertation__desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ttb-res-body);
  margin: 0 0 1.5rem 0;
  max-width: 900px;
}

/* Metrics row */
.ttb-research-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(111, 130, 99, 0.2);
  border-bottom: 1px solid rgba(111, 130, 99, 0.2);
}

.ttb-research-metric__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ttb-research-metric__value {
  font-family: var(--ttb-res-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ttb-res-forest);
}

.ttb-research-metric__label {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ttb-res-body);
}

.ttb-research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

/* Buttons and Links */
.ttb-research-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ttb-res-forest);
  color: #fff;
  font-family: var(--ttb-res-head);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.65rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ttb-research-btn:hover {
  background: var(--ttb-res-moss);
  color: #fff;
  transform: translateY(-1px);
}

.ttb-research-btn--secondary {
  background: transparent;
  color: var(--ttb-res-forest);
  border: 1.5px solid var(--ttb-res-forest);
}

.ttb-research-btn--secondary:hover {
  background: var(--ttb-res-forest);
  color: #fff;
}

.ttb-research-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ttb-res-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ttb-res-forest);
  text-decoration: none;
  transition: gap 0.15s ease, color 0.15s ease;
}

.ttb-research-link:hover {
  color: var(--ttb-res-moss);
  gap: 0.65rem;
}

/* Section Grids */
.ttb-research-section-head {
  margin-bottom: 1.75rem;
}

.ttb-research-section-title {
  font-family: var(--ttb-res-head);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--ttb-res-forest);
  margin: 0 0 0.5rem 0;
}

.ttb-research-section-sub {
  font-size: 0.98rem;
  color: var(--ttb-res-body);
  margin: 0;
}

.ttb-research-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 1.75rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.ttb-research-card {
  background: var(--ttb-res-white);
  border: 1px solid var(--ttb-res-line);
  border-radius: 14px;
  padding: clamp(24px, 3.5vw, 32px);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ttb-research-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(46, 73, 54, 0.06);
}

.ttb-research-card--cream {
  background: var(--ttb-res-cream);
}

.ttb-research-card__tag {
  font-family: var(--ttb-res-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ttb-res-moss);
  margin-bottom: 0.5rem;
  display: block;
}

.ttb-research-card__title {
  font-family: var(--ttb-res-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ttb-res-forest);
  margin: 0 0 0.75rem 0;
}

.ttb-research-card__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ttb-res-body);
  margin: 0 0 1.25rem 0;
  flex: 1;
}

/* Presentations List */
.ttb-research-talks-wrap {
  background: var(--ttb-res-white);
  border: 1px solid var(--ttb-res-line);
  border-radius: 14px;
  padding: clamp(24px, 3.5vw, 36px);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.ttb-research-talks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.ttb-research-talk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ttb-res-charcoal);
}

.ttb-research-talk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ttb-res-moss);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* Bottom Callout */
.ttb-research-callout {
  background: var(--ttb-res-forest);
  color: #fff;
  border-radius: 16px;
  padding: clamp(32px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.ttb-research-callout .ttb-research-eyebrow {
  color: #A2B997;
}

.ttb-research-callout h2 {
  font-family: var(--ttb-res-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin: 0;
}

.ttb-research-callout p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 720px;
}

.ttb-research-callout .ttb-research-btn {
  background: #fff;
  color: var(--ttb-res-forest);
}

.ttb-research-callout .ttb-research-btn:hover {
  background: var(--ttb-res-paper);
  color: var(--ttb-res-forest);
}

@media (max-width: 640px) {
  .ttb-research-sec {
    padding: 32px 16px 48px;
  }
  .ttb-research-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ttb-research-btn {
    justify-content: center;
  }
}
