/**
 * Post component styles
 *
 * Uses only global theme variables from the Joomla template theme files.
 * No local color variables, no body styles, no container width overrides.
 */

a {
  text-underline-offset: .18em;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--theme-color-rgb), .18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(var(--theme-color-secondary-rgb), .16), transparent 26%),
    linear-gradient(135deg, var(--theme-surface) 0%, var(--theme-surface-soft) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% -10%;
  height: 220px;
  background: var(--theme-surface);
  border-radius: 50% 50% 0 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.section-kicker {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 700;
}

.case-summary-card,
.content-card,
.interview-card,
.pdf-card,
.photo-card,
.timeline-card {
  border: 1px solid var(--theme-color);
  border-radius: 1.5rem;
  background: var(--theme-surface);
}
.photo-card {
    overflow: overlay;
}

.photo-card .portfolio-block,
.portfolio-block .image-box .image img {
    margin-bottom: 0;
}

.case-summary-card {
  overflow: hidden;
  border-radius: 1.75rem;
}

.case-summary-intro {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .22), transparent 30%),
    linear-gradient(180deg, var(--theme-color) 0%, var(--theme-color-secondary) 100%);
  color: var(--theme-on-color);
  padding: 2.5rem;
}

.case-summary-intro p {
  color: rgba(255, 255, 255, .84);
}

.case-result {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}

.case-result .small {
  color: rgba(255, 255, 255, .72);
  letter-spacing: .08em;
}

.case-summary-details {
  padding: 1.5rem;
}

.case-detail-list {
  display: grid;
  gap: .75rem;
}

.case-detail-item {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 1.25rem;
  padding: .3rem 0;
  border-bottom: 1px solid var(--theme-line-soft);
}

.case-detail-item:first-child {
  border-top: 1px solid var(--theme-line-soft);
}

.case-detail-label {
  color: var(--theme-text-muted);
  font-size: .925rem;
  font-weight: 600;
}

.case-detail-value {
  color: var(--theme-text);
  font-weight: 500;
  line-height: 1.55;
}

.editorial-note {
  border: 1px solid rgba(var(--theme-color-rgb), .2);
  border-radius: 1.25rem;
  background: rgba(var(--theme-color-rgb), .06);
  padding: 1.25rem 1.5rem;
  color: var(--theme-text-soft);
  font-size: .95rem;
  line-height: 1.65;
}

.editorial-note-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  background: var(--theme-color);
  color: var(--theme-on-color);
  font-weight: 700;
  font-style: italic;
}

.q-marker,
.a-marker {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  font-weight: 700;
}

.q-marker {
  background: var(--theme-color);
  color: var(--theme-on-color);
}

.a-marker {
  background: rgba(var(--theme-color-rgb), .08);
  color: var(--theme-color);
}

.answer-box {
  border-left: 3px solid var(--theme-color);
  padding-left: 1.25rem;
  margin-left: 1.35rem;
}

.blog-post .answer-box blockquote {
  border: 0;
  padding: 0;
  margin: 0px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--theme-line-soft);
}

.timeline-date {
  font-weight: 700;
  color: var(--theme-color);
}

.photo-placeholder {
  min-height: 220px;
  border: 1px dashed rgba(var(--theme-color-rgb), .35);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(var(--theme-color-rgb), .08), rgba(255, 255, 255, .9)),
    var(--theme-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--theme-text-soft);
  padding: 2rem;
}

.pdf-card,
.footer-cta {
  background: linear-gradient(
        180deg,
        var(--theme-color) 0%,
        var(--theme-dark-surface-soft) 45%,
        var(--theme-dark-surface) 100%
    );
  color: var(--theme-on-color);
}

.pdf-card p,
.footer-cta p {
  color: rgba(255, 255, 255, .78);
}

.accordion-button {
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .answer-box {
    margin-left: 0;
  }

  .case-detail-item,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .case-summary-intro,
  .case-summary-details {
    padding: 1.5rem;
  }
}
