/* =========================================================
  Diagnosis Hub (/diagnosis/)
========================================================= */

.theories-diagnosis-hub {
  --tdh-text: #222831;
  --tdh-muted: #667085;
  --tdh-border: #e5e7eb;
  --tdh-bg: #f4f5f7;
  --tdh-card: #ffffff;
  --tdh-navy: #26364d;
  --tdh-blue: #4f6f96;
  --tdh-green: #4f7f71;
  --tdh-rose: #a85d73;
  --tdh-gold: #8f7a4d;
  --tdh-shadow: 0 16px 40px rgba(30, 41, 59, .08);

  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 0 0 84px;
  overflow-x: hidden;
  background: var(--tdh-bg);
  color: var(--tdh-text);
}

#content.l-content {
  padding-top: 0 !important;
}

.tdh-page {
  width: calc(100% - 56px);
  max-width: calc(var(--container_size, 1100px) + var(--swl-pad_container, 0px) * 2);
  margin: 44px auto 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(30, 41, 59, .08);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(30, 41, 59, .08);
}

.theories-diagnosis-hub *,
.theories-diagnosis-hub *::before,
.theories-diagnosis-hub *::after {
  box-sizing: border-box;
}

.tdh-shell {
  width: calc(100% - 56px);
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.tdh-eyebrow {
  margin: 0 0 10px;
  color: var(--tdh-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.tdh-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(79, 111, 150, .14), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fbfaf7 56%, rgba(79, 111, 150, .08) 100%);
}

.tdh-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: max(7vw, 96px);
  z-index: 0;
  width: min(28vw, 360px);
  aspect-ratio: 1 / 1;
  transform: translateY(-50%) rotate(-8deg);
  background-image:
    linear-gradient(90deg, rgba(79, 111, 150, .22) 1px, transparent 1px),
    linear-gradient(rgba(79, 111, 150, .18) 1px, transparent 1px);
  background-size: 42px 42px;
  border: 1px solid rgba(79, 111, 150, .14);
  border-radius: 32px;
  opacity: .22;
  pointer-events: none;
}

.tdh-hero .tdh-shell {
  width: 100%;
  max-width: calc(var(--container_size, 1100px) + var(--swl-pad_container, 0px) * 2);
  padding-right: var(--swl-pad_container, 4vw);
  padding-left: var(--swl-pad_container, 4vw);
}

.tdh-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  gap: 64px;
  align-items: center;
}

.tdh-hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tdh-hero__sub {
  display: block;
  margin-bottom: 12px;
  color: rgba(30, 41, 59, .46);
  font-size: 13px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.tdh-hero__title {
  margin: 0;
  color: #1e293b;
  font-size: 46px;
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: 0;
}

.tdh-hero__label {
  display: block;
  margin-top: 12px;
  color: var(--tdh-blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.tdh-hero__lead {
  margin: 0;
  color: #374151;
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
}

.tdh-hero__note {
  margin: 14px 0 0;
  color: var(--tdh-muted);
  font-size: 14px;
  line-height: 1.9;
}

.tdh-hero__panel {
  position: relative;
  z-index: 2;
  padding: 30px 34px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(79, 111, 150, .06) 0%, rgba(79, 111, 150, 0) 72%),
    rgba(255, 255, 255, .84);
  border: 1px solid rgba(79, 111, 150, .14);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(30, 41, 59, .07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tdh-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.tdh-hero__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 0 14px;
  background: rgba(248, 250, 252, .86);
  border: 1px solid rgba(30, 41, 59, .06);
  border-radius: 8px;
}

.tdh-hero__stat span {
  color: var(--tdh-muted);
  font-size: 13px;
  font-weight: 700;
}

.tdh-hero__stat strong {
  color: var(--tdh-navy);
  font-size: 20px;
  line-height: 1;
}

.tdh-filter {
  padding: 22px 0 0;
  background: #ffffff;
}

.tdh-filter__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(360px, 2fr) minmax(136px, auto);
  gap: 16px;
  align-items: end;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(30, 41, 59, .08);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 41, 59, .06);
}

.tdh-filter__search,
.tdh-filter__status {
  min-width: 0;
}

.tdh-filter__label {
  display: block;
  margin: 0 0 8px;
  color: var(--tdh-navy);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.tdh-filter__input {
  width: 100%;
  min-height: 44px;
  color: var(--tdh-text);
  font-size: 14px;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid rgba(30, 41, 59, .14);
  border-radius: 8px;
}

.tdh-filter__input {
  padding: 0 14px;
}

.tdh-filter__input::placeholder {
  color: #98a2b3;
}

.tdh-filter__fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tdh-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tdh-filter__chip {
  position: relative;
  display: inline-flex;
  min-width: 0;
  cursor: pointer;
}

.tdh-filter__chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.tdh-filter__chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--tdh-text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  background: #f8fafc;
  border: 1px solid rgba(30, 41, 59, .12);
  border-radius: 999px;
  transition:
    color .16s ease,
    background-color .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.tdh-filter__chip input:focus-visible + span {
  outline: 3px solid rgba(79, 111, 150, .30);
  outline-offset: 2px;
}

.tdh-filter__chip input:checked + span {
  color: #ffffff;
  background: var(--tdh-navy);
  border-color: var(--tdh-navy);
  box-shadow: 0 8px 20px rgba(38, 54, 77, .18);
}

.tdh-filter__chip--mind input:checked + span {
  background: var(--tdh-blue);
  border-color: var(--tdh-blue);
}

.tdh-filter__chip--work input:checked + span {
  background: var(--tdh-green);
  border-color: var(--tdh-green);
}

.tdh-filter__chip--love input:checked + span {
  background: var(--tdh-rose);
  border-color: var(--tdh-rose);
}

.tdh-filter__chip--marriage input:checked + span {
  background: var(--tdh-gold);
  border-color: var(--tdh-gold);
}

.tdh-filter__status {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.tdh-filter__count {
  min-height: 18px;
  margin: 0;
  color: var(--tdh-muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
  text-align: center;
}

.tdh-filter__reset {
  min-height: 44px;
  padding: 0 16px;
  color: var(--tdh-navy);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  background: #ffffff;
  border: 1px solid rgba(30, 41, 59, .16);
  border-radius: 8px;
  transition:
    background-color .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.tdh-filter__reset:hover {
  background: #f8fafc;
  border-color: rgba(79, 111, 150, .34);
  box-shadow: 0 8px 18px rgba(30, 41, 59, .07);
}

.tdh-empty {
  margin: 42px 0 0;
  padding: 28px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(30, 41, 59, .10);
  border-radius: 8px;
}

.tdh-empty__title {
  margin: 0;
  color: var(--tdh-navy);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.45;
}

.tdh-empty__text {
  margin: 10px 0 0;
  color: var(--tdh-muted);
  font-size: 14px;
  line-height: 1.8;
}

.tdh-sections {
  padding-top: 34px;
  padding-bottom: 58px;
}

.tdh-section {
  scroll-margin-top: 96px;
  padding-top: 28px;
}

.tdh-section + .tdh-section {
  margin-top: 58px;
}

.tdh-section__head {
  max-width: 760px;
  margin-bottom: 28px;
}

.tdh-section__title {
  margin: 0;
  color: var(--tdh-navy);
  font-size: 30px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0;
}

.tdh-section__lead {
  margin: 12px 0 0;
  color: var(--tdh-muted);
  font-size: 15px;
  line-height: 1.9;
}

.tdh-group + .tdh-group {
  margin-top: 34px;
}

.tdh-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--tdh-text);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0;
}

.tdh-group__title::before {
  content: "";
  width: 8px;
  height: 24px;
  background: var(--tdh-blue);
  border-radius: 999px;
}

.tdh-section--work .tdh-group__title::before {
  background: var(--tdh-green);
}

.tdh-section--love .tdh-group__title::before {
  background: var(--tdh-rose);
}

.tdh-section--marriage .tdh-group__title::before {
  background: var(--tdh-gold);
}

.tdh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tdh-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none !important;
  background: var(--tdh-card);
  border: 1px solid rgba(30, 41, 59, .08);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 41, 59, .05);
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.tdh-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 111, 150, .36);
  box-shadow: var(--tdh-shadow);
}

.tdh-card:focus-visible {
  outline: 3px solid rgba(79, 111, 150, .35);
  outline-offset: 3px;
}

.tdh-card__media {
  aspect-ratio: 1.9 / 1;
  margin: 0;
  overflow: hidden;
  background: #eef1f5;
}

.tdh-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}

.tdh-card:hover .tdh-card__img {
  transform: scale(1.025);
}

.tdh-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px 18px 16px;
}

.tdh-card__category {
  margin: 0 0 8px;
  color: var(--tdh-blue);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.tdh-section--work .tdh-card__category {
  color: var(--tdh-green);
}

.tdh-section--love .tdh-card__category {
  color: var(--tdh-rose);
}

.tdh-section--marriage .tdh-card__category {
  color: var(--tdh-gold);
}

.tdh-card__title {
  margin: 0;
  color: var(--tdh-text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.55;
  letter-spacing: 0;
}

.tdh-card__text {
  margin: 10px 0 0;
  color: var(--tdh-muted);
  font-size: 14px;
  line-height: 1.75;
}

.tdh-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.tdh-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--tdh-navy);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  background: #f4f6f8;
  border: 1px solid rgba(30, 41, 59, .07);
  border-radius: 999px;
}

@media screen and (max-width: 1280px) {
  .tdh-filter__inner {
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.3fr);
  }

  .tdh-filter__status {
    align-self: end;
  }

  .tdh-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 959px) {
  .tdh-page {
    width: calc(100% - 36px);
    margin-top: 36px;
  }

  .tdh-shell {
    width: calc(100% - 36px);
    max-width: 760px;
  }

  .tdh-hero .tdh-shell {
    width: calc(100% - 36px);
    max-width: 760px;
    padding-right: 0;
    padding-left: 0;
  }

  .tdh-hero {
    padding: 56px 0;
  }

  .tdh-hero::after {
    left: max(2vw, 24px);
    width: min(46vw, 280px);
    opacity: .16;
  }

  .tdh-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tdh-hero__panel {
    max-width: 760px;
  }

  .tdh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tdh-filter__inner {
    grid-template-columns: 1fr;
  }

  .tdh-filter__status {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .tdh-filter__count {
    text-align: left;
  }
}

@media screen and (max-width: 640px) {
  .theories-diagnosis-hub {
    padding: 0 0 56px;
  }

  .tdh-page {
    width: calc(100% - 20px);
    margin-top: 28px;
  }

  .tdh-shell {
    width: calc(100% - 32px);
    max-width: 460px;
  }

  .tdh-hero .tdh-shell {
    width: calc(100% - 32px);
    max-width: 460px;
  }

  .tdh-hero__title {
    font-size: 30px;
  }

  .tdh-hero {
    padding: 44px 0;
  }

  .tdh-hero::after {
    right: -12vw;
    left: auto;
    width: min(58vw, 260px);
    opacity: .10;
  }

  .tdh-hero__lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .tdh-hero__panel {
    padding: 22px;
    border-radius: 16px;
  }

  .tdh-hero__stats {
    grid-template-columns: 1fr;
  }

  .tdh-grid {
    grid-template-columns: 1fr;
  }

  .tdh-filter__inner {
    padding: 14px;
  }

  .tdh-filter__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tdh-filter__chip span {
    width: 100%;
  }

  .tdh-filter__status {
    grid-template-columns: 1fr;
  }

  .tdh-filter__count {
    text-align: center;
  }

  .tdh-section__title {
    font-size: 25px;
  }
}
