/* ========================================================================== 
   TUTORize Resources – Phase 2 refinements
   No horizontal UI scrolling. Help Center + subtle Praxiswissen differentiation.
   ========================================================================== */

.tz-pw-index__filters {
  display: flex;
  overflow: visible !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 9px;
  padding: 2px 0 22px;
  scrollbar-width: none;
}

.tz-pw-index__filters::-webkit-scrollbar {
  display: none;
}

.tz-pw-filter {
  min-height: 40px;
  flex: 0 1 auto;
  padding: 10px 15px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.tz-resource-nav__tabs {
  overflow: visible !important;
  flex-wrap: wrap;
}

.tz-theme-ai,
.tz-theme-learning,
.tz-theme-knowledge,
.tz-theme-compliance,
.tz-theme-tech,
.tz-theme-practice,
.tz-theme-default {
  --tz-theme-a: #0b8fb8;
  --tz-theme-b: #005d7b;
  --tz-theme-c: #050a30;
}

.tz-theme-ai { --tz-theme-a: #008fbf; --tz-theme-b: #005d7c; --tz-theme-c: #050a30; }
.tz-theme-learning { --tz-theme-a: #1597bf; --tz-theme-b: #006481; --tz-theme-c: #061039; }
.tz-theme-knowledge { --tz-theme-a: #087f91; --tz-theme-b: #005468; --tz-theme-c: #061039; }
.tz-theme-compliance { --tz-theme-a: #356d88; --tz-theme-b: #17465f; --tz-theme-c: #070e33; }
.tz-theme-tech { --tz-theme-a: #0b82ad; --tz-theme-b: #004f72; --tz-theme-c: #050b33; }
.tz-theme-practice { --tz-theme-a: #168ba8; --tz-theme-b: #00627b; --tz-theme-c: #07123b; }

.tz-theme-ai .tz-resource-lead-card__visual,
.tz-theme-ai .tz-resource-side-card__visual,
.tz-theme-ai .tz-resource-story-card__visual,
.tz-theme-learning .tz-resource-lead-card__visual,
.tz-theme-learning .tz-resource-side-card__visual,
.tz-theme-learning .tz-resource-story-card__visual,
.tz-theme-knowledge .tz-resource-lead-card__visual,
.tz-theme-knowledge .tz-resource-side-card__visual,
.tz-theme-knowledge .tz-resource-story-card__visual,
.tz-theme-compliance .tz-resource-lead-card__visual,
.tz-theme-compliance .tz-resource-side-card__visual,
.tz-theme-compliance .tz-resource-story-card__visual,
.tz-theme-tech .tz-resource-lead-card__visual,
.tz-theme-tech .tz-resource-side-card__visual,
.tz-theme-tech .tz-resource-story-card__visual,
.tz-theme-practice .tz-resource-lead-card__visual,
.tz-theme-practice .tz-resource-side-card__visual,
.tz-theme-practice .tz-resource-story-card__visual,
.tz-theme-default .tz-resource-lead-card__visual,
.tz-theme-default .tz-resource-side-card__visual,
.tz-theme-default .tz-resource-story-card__visual {
  background: linear-gradient(135deg, var(--tz-theme-a) 0%, var(--tz-theme-b) 57%, var(--tz-theme-c) 100%);
}

.tz-resource-art__brand {
  max-width: calc(100% - 48px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tz-help-index,
.tz-resource-help-live,
.tz-help-post-main,
.tz-help-post-hero {
  --tz-help-primary: #009ee0;
  --tz-help-navy: #050a30;
  --tz-help-teal: #003f5d;
  --tz-help-light: #cee7f7;
  --tz-help-border: rgba(0, 63, 93, 0.13);
  --tz-help-muted: rgba(5, 10, 48, 0.62);
  --tz-help-shadow: 0 14px 36px rgba(5, 10, 48, 0.07);
}

.tz-help-index {
  background: #ffffff;
}

.tz-help-index__container {
  max-width: 1180px;
  padding-top: 70px;
  padding-bottom: 88px;
}

.tz-help-index__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: stretch;
  gap: 28px;
  margin-bottom: 38px;
}

.tz-help-index__title {
  max-width: 720px;
  margin: 0;
  color: var(--tz-help-navy) !important;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.tz-help-index__lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--tz-help-muted);
  font-size: 16px;
  line-height: 1.58;
}

.tz-help-faq-card {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  justify-content: center;
  padding: 24px 26px;
  border: 1px solid rgba(0, 158, 224, 0.20);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(206, 231, 247, 0.42), rgba(255, 255, 255, 0.92));
  color: var(--tz-help-navy) !important;
  text-decoration: none !important;
}

.tz-help-faq-card:hover {
  border-color: rgba(0, 158, 224, 0.40);
  box-shadow: var(--tz-help-shadow);
}

.tz-help-faq-card__eyebrow,
.tz-help-latest__type,
.tz-resource-help-live__eyebrow {
  color: var(--tz-help-primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.tz-help-faq-card__title {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.tz-help-faq-card__link {
  margin-top: 18px;
  color: var(--tz-help-teal);
  font-size: 13px;
  font-weight: 750;
}

.tz-help-source {
  overflow: hidden;
  border: 1px solid var(--tz-help-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--tz-help-shadow);
}

.tz-help-source__content > .s_cover,
.tz-help-source__content > ul:empty,
.tz-help-source__content > ol:empty,
.tz-help-source__content > p:empty {
  display: none !important;
}

.tz-help-source__content .s_faq_collapse {
  padding: 0 !important;
  background: transparent !important;
}

.tz-help-source__content .s_faq_collapse > .container {
  max-width: none;
  padding: 0;
}

.tz-help-source__content .accordion {
  margin: 0;
  border: 0;
}

.tz-help-source__content .accordion > .card {
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff !important;
  box-shadow: none;
}

.tz-help-source__content .accordion > .card + .card {
  border-top: 1px solid var(--tz-help-border);
}

.tz-help-source__content .card-header {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 19px 58px 19px 24px;
  border: 0;
  background: #ffffff;
  color: var(--tz-help-navy) !important;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none !important;
}

.tz-help-source__content .card-header:hover,
.tz-help-source__content .card-header:not(.collapsed) {
  background: rgba(206, 231, 247, 0.22);
}

.tz-help-source__content .card-header::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  display: flex;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tz-help-border);
  border-radius: 50%;
  color: var(--tz-help-teal);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.tz-help-source__content .card-header:not(.collapsed)::after {
  content: "−";
  border-color: rgba(0, 158, 224, 0.30);
  color: var(--tz-help-primary);
}

.tz-help-source__content .card-body {
  padding: 8px 24px 30px;
  border-top: 1px solid rgba(0, 63, 93, 0.08);
  color: rgba(5, 10, 48, 0.76);
  font-size: 14px;
  line-height: 1.55;
}

.tz-help-source__content .card-body p > b,
.tz-help-source__content .card-body p > strong {
  display: block;
  margin: 22px 0 8px;
  color: var(--tz-help-navy);
  font-size: 14px;
  font-weight: 800;
}

.tz-help-source__content .card-body ul {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}

.tz-help-source__content .card-body li {
  position: relative;
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid rgba(0, 63, 93, 0.07);
}

.tz-help-source__content .card-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tz-help-primary);
}

.tz-help-source__content .card-body a {
  color: var(--tz-help-teal) !important;
  font-weight: 650;
  text-decoration: none !important;
}

.tz-help-source__content .card-body a:hover {
  color: var(--tz-help-primary) !important;
}

.tz-help-latest {
  padding-top: 76px;
}

.tz-help-latest__grid,
.tz-resource-help-live__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tz-help-latest__item,
.tz-resource-help-live__item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 23px 54px 22px 24px;
  border: 1px solid var(--tz-help-border);
  border-radius: 20px;
  background: #ffffff;
  color: var(--tz-help-navy) !important;
  text-decoration: none !important;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tz-help-latest__item:hover,
.tz-resource-help-live__item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 158, 224, 0.30);
  box-shadow: var(--tz-help-shadow);
}

.tz-help-latest__title,
.tz-resource-help-live__title {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.3;
}

.tz-help-latest__meta {
  margin-top: 14px;
  color: var(--tz-help-muted);
  font-size: 12px;
}

.tz-help-latest__arrow,
.tz-resource-help-live__arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tz-help-teal);
  font-size: 21px;
}

.tz-resource-help-live {
  background: linear-gradient(180deg, rgba(206, 231, 247, 0.18), rgba(206, 231, 247, 0.32));
}

.tz-resource-help-live__container {
  max-width: 1180px;
  padding-top: 80px;
  padding-bottom: 88px;
}

.tz-resource-help-live__item--faq {
  border-color: rgba(0, 158, 224, 0.24);
  background: rgba(206, 231, 247, 0.26);
}

.tz-help-post-hero {
  background: linear-gradient(140deg, #003f5d 0%, #050a30 76%);
  color: #ffffff;
}

.tz-help-post-hero__container {
  max-width: 1040px;
  padding-top: 52px;
  padding-bottom: 54px;
}

.tz-help-post-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.60);
  font-size: 12.5px;
}

.tz-help-post-breadcrumbs a {
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none !important;
}

.tz-help-post-breadcrumbs a:hover {
  color: #ffffff !important;
}

.tz-help-post-breadcrumbs__current {
  overflow: hidden;
  max-width: 520px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tz-help-post-hero__eyebrow {
  margin-bottom: 12px;
  color: #cee7f7;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tz-help-post-hero__title {
  max-width: 900px;
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
}

.tz-help-post-hero__subtitle {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

.tz-help-post-main {
  background: #f7f9fb;
}

.tz-help-post-main__container {
  max-width: 1040px;
  padding-top: 54px;
  padding-bottom: 78px;
}

.tz-help-post-article {
  max-width: 840px;
  margin: 0 auto;
  padding: 44px 50px 52px;
  border: 1px solid var(--tz-help-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--tz-help-shadow);
}

.tz-help-post-article__body {
  color: rgba(5, 10, 48, 0.80);
  font-size: 16px;
  line-height: 1.68;
}

.tz-help-post-article__body h2,
.tz-help-post-article__body h3,
.tz-help-post-article__body h4 {
  color: var(--tz-help-navy) !important;
  font-weight: 800;
  line-height: 1.22;
}

.tz-help-post-article__body h2 { margin: 40px 0 16px; font-size: 28px; }
.tz-help-post-article__body h3 { margin: 32px 0 13px; font-size: 22px; }
.tz-help-post-article__body h4 { margin: 26px 0 12px; font-size: 18px; }

.tz-help-post-article__body img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(0, 63, 93, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(5, 10, 48, 0.07);
}

.tz-help-post-article__body table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
}

.tz-help-post-article__body th,
.tz-help-post-article__body td {
  padding: 12px 14px;
  border: 1px solid rgba(0, 63, 93, 0.13);
  vertical-align: top;
}

.tz-help-post-article__body th {
  background: rgba(206, 231, 247, 0.30);
  color: var(--tz-help-navy);
  font-weight: 750;
}

.tz-help-post-footer {
  max-width: 840px;
  margin: 24px auto 0;
}

.tz-help-post-footer__back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--tz-help-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tz-help-teal) !important;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none !important;
}

@media (max-width: 991.98px) {
  .tz-help-index__intro {
    grid-template-columns: 1fr;
  }

  .tz-help-faq-card {
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .tz-resource-nav__container {
    align-items: flex-start;
  }

  .tz-resource-nav__tabs {
    width: 100%;
    gap: 7px;
    padding: 6px 0 0;
  }

  .tz-resource-nav__tab {
    flex: 0 1 auto;
    white-space: normal;
  }

  .tz-help-index__container,
  .tz-resource-help-live__container {
    padding-top: 52px;
    padding-bottom: 60px;
  }

  .tz-help-latest {
    padding-top: 54px;
  }

  .tz-help-latest__grid,
  .tz-resource-help-live__grid {
    grid-template-columns: 1fr;
  }

  .tz-help-source__content .card-header {
    padding: 17px 52px 17px 18px;
  }

  .tz-help-source__content .card-header::after {
    right: 17px;
  }

  .tz-help-source__content .card-body {
    padding: 6px 18px 24px;
  }

  .tz-help-post-hero__container {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .tz-help-post-main__container {
    padding-top: 34px;
    padding-bottom: 52px;
  }

  .tz-help-post-article {
    padding: 28px 22px 34px;
    border-radius: 20px;
  }
}

@media (max-width: 575.98px) {
  .tz-pw-index__filters {
    gap: 7px;
  }

  .tz-pw-filter {
    flex: 1 1 calc(50% - 7px);
    min-width: 0;
  }

  .tz-resource-nav__container {
    align-items: stretch;
  }

  .tz-resource-nav__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tz-resource-nav__tab {
    width: 100%;
  }
}
