/**
 * Taxtrack case study — layout and typography are handled with Tailwind
 * utilities in case-study/taxtrack.php and patterns/Case-study/taxtrack/*.php.
 * This file is enqueued for the Taxtrack template; keep it for optional
 * non-utility hooks if needed later.
 */

.case-study-taxtrack {
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(14, 116, 144, 0.2), transparent 55%),
    radial-gradient(1000px 600px at 90% 10%, rgba(59, 130, 246, 0.14), transparent 50%),
    linear-gradient(180deg, #030712 0%, #0a1224 100%);
}

.tt-section-shell {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tt-section-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 35%, rgba(56, 189, 248, 0.04));
}

.tt-section-dark {
  background: rgba(2, 6, 23, 0.35);
}

.tt-section-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(238, 247, 255, 0.9) 100%);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.tt-glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.46);
  box-shadow: 0 16px 45px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(14px);
}

.tt-glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 40%);
}

.tt-glass-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
}

.tt-section-light .tt-glass-panel {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}

.tt-section-light .tt-glass-card {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.68);
}

.tt-section-light .text-zinc-100,
.tt-section-light .text-white {
  color: rgb(15 23 42) !important;
}

.tt-section-light .text-zinc-200,
.tt-section-light .text-zinc-300,
.tt-section-light .text-zinc-400,
.tt-section-light .text-zinc-500,
.tt-section-light .text-white\/75,
.tt-section-light .text-white\/80,
.tt-section-light .text-white\/90,
.tt-section-light .text-white\/95 {
  color: rgb(71 85 105) !important;
}

.tt-section-light .border-white\/10,
.tt-section-light .border-white\/15,
.tt-section-light .border-white\/20,
.tt-section-light .border-white\/25,
.tt-section-light .border-white\/30,
.tt-section-light .border-white\/35 {
  border-color: rgba(148, 163, 184, 0.35) !important;
}

/* Approach: same dark glass cards as Challenges; undo light-section text/border remaps inside cards */
.tt-section-light #case-study-approach .tt-glass-card .text-zinc-100 {
  color: rgb(244 244 245) !important;
}
.tt-section-light #case-study-approach .tt-glass-card .text-zinc-400 {
  color: rgb(161 161 170) !important;
}
.tt-section-light #case-study-approach .tt-glass-card .border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Team: same dark glass cards as Approach/Challenges on light sections */
.tt-section-light #case-study-team .tt-glass-card .text-zinc-100 {
  color: rgb(244 244 245) !important;
}
.tt-section-light #case-study-team .tt-glass-card .text-zinc-400 {
  color: rgb(161 161 170) !important;
}
.tt-section-light #case-study-team .tt-glass-card .border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Equal-height chart cards: grid stretches rows; figure + image area grow (overrides global flex: 0 0 auto). */
#case-study-team .tt-team-metrics-card .tt-metric-chart-card {
  min-height: 0;
}

#case-study-team .tt-team-metrics-card .tt-commits-chart--image,
#case-study-team .tt-team-metrics-card .tt-codefreq--image {
  flex: 1 1 auto;
  min-height: 0;
}

#case-study-team .tt-team-metrics-card .tt-commits-chart__media,
#case-study-team .tt-team-metrics-card .tt-codefreq__media {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

#case-study-team .tt-team-metrics-card .tt-commits-chart__img,
#case-study-team .tt-team-metrics-card .tt-codefreq__img {
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* JIRA cumulative flow — static chart image */
#case-study-team .tt-jira-cfd {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Size to chart image (no flex-1/min-h-0 chain — that split card height and clipped the img). */
#case-study-team .tt-jira-cfd__chart--image {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 0;
}

#case-study-team .tt-jira-cfd__plot-wrap {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
}

/* Width follows container; height from intrinsic aspect (~1024×513 via width/height on img). */
#case-study-team .tt-jira-cfd__plot-inner {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

#case-study-team .tt-jira-cfd__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/* Commits chart: static image (bar + navigator strip in asset). */
#case-study-team .tt-commits-chart--image {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
}

#case-study-team .tt-commits-chart__media {
  width: 100%;
  max-width: 100%;
}

#case-study-team .tt-commits-chart__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/* Code frequency: static image (additions / deletions chart in asset). */
#case-study-team .tt-codefreq--image {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
}

#case-study-team .tt-codefreq__media {
  width: 100%;
  max-width: 100%;
}

#case-study-team .tt-codefreq__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.tt-glow-accent {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(42px);
}
