/* If-Thema series — shared styles for /if-thema/ and /if-thema/<slug>/ pages.
   Loaded together with the site-wide ../styles.css (or ../../styles.css). */

/* ---------- shared: hero / detail-section vocabulary ----------
   Mirrors the "detail page" pattern already used by projects/project-001.css
   (kicker + h1 + lead, .detail-section / .detail-layout / .detail-label /
   .detail-copy), reused here so If-Thema pages stay visually consistent
   with the rest of Project-if instead of introducing a new page type. */

.if-thema-body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)),
    var(--bg);
}

.if-thema-main {
  padding-bottom: 60px;
}

.detail-section {
  padding: 36px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.detail-label {
  margin: 0;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.detail-copy p + p {
  margin-top: 16px;
}

.detail-copy ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-copy ul li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 1.02rem;
}

.detail-copy ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- /if-thema/ series top ---------- */

.if-thema-series-hero {
  padding: 72px 0 44px;
}

.if-thema-series-shell {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.if-thema-series-shell h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.if-thema-series-lead {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.if-thema-series-list-section {
  padding: 20px 0 90px;
}

.if-thema-theme-list {
  display: grid;
  gap: 18px;
}

.if-thema-theme-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.if-thema-theme-card-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.if-thema-theme-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.if-thema-theme-card p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
}

.if-thema-theme-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.if-thema-theme-card-arrow {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 1rem;
}

.if-thema-series-note {
  margin: 22px 2px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- /if-thema/<slug>/ product page ---------- */

.if-thema-sb-hero {
  padding: 72px 0 44px;
}

.if-thema-sb-shell {
  display: grid;
  gap: 30px;
}

.if-thema-sb-header {
  display: grid;
  gap: 18px;
}

.if-thema-sb-header h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.6rem, 5.5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.if-thema-sb-lead {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.if-thema-sb-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.if-thema-sb-meta div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
}

.if-thema-sb-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.if-thema-sb-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.4;
}

.if-thema-sb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.if-thema-sb-actions .button-text {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.if-thema-sb-actions .button-text:hover,
.if-thema-sb-actions .button-text:focus-visible {
  color: var(--text);
}

.if-thema-sb-visual {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 244, 249, 0.82));
  box-shadow: var(--shadow);
}

.if-thema-sb-visual img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.if-thema-sb-visual-caption {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.if-thema-sb-visual-caption a {
  color: var(--blue);
  font-weight: 700;
}

.if-thema-sb-visual-caption a:hover,
.if-thema-sb-visual-caption a:focus-visible {
  text-decoration: underline;
}

.if-thema-sb-aux-note {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.if-thema-sb-aux-note a {
  color: var(--blue);
  font-weight: 700;
}

.if-thema-sb-aux-note a:hover,
.if-thema-sb-aux-note a:focus-visible {
  text-decoration: underline;
}

.if-thema-steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: if-thema-step;
  display: grid;
  gap: 14px;
}

.if-thema-steps li {
  counter-increment: if-thema-step;
  position: relative;
  padding: 16px 18px 16px 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
  font-weight: 650;
}

.if-thema-steps li::before {
  content: counter(if-thema-step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.if-thema-sb-final {
  padding: 28px 0 0;
}

.if-thema-sb-final-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
}

.if-thema-sb-final-inner h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.05em;
}

.if-thema-sb-final-meta {
  margin: 10px 0 0;
  color: #aeb9c9;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.if-thema-sb-final-inner .button-primary {
  border-color: var(--blue);
}

@media (max-width: 980px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .if-thema-theme-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .if-thema-theme-card-meta {
    justify-content: space-between;
  }

  .if-thema-sb-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .if-thema-series-hero,
  .if-thema-sb-hero {
    padding-top: 54px;
  }

  .if-thema-sb-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .if-thema-sb-actions .button-text {
    justify-content: center;
  }

  .if-thema-sb-final-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
  }
}
