/* ==========================================================================
   YT Digital Power — Content pages
   Page hero, news index, post cards, single post, about, services,
   documents, contact, legal, 404 and search results.

   Shared blocks (.yt-btn, .yt-form, .yt-empty, .yt-pagination, .yt-news__tab,
   .yt-product-card, .yt-cta, .yt-prose, .yt-breadcrumbs) live in
   tokens/base/components and are only extended, never redefined, here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */
.yt-page-hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
  background: var(--yt-bg-soft);
  color: var(--yt-ink);
}

.yt-page-hero--dark {
  background: linear-gradient(135deg, #0B0B0C 0%, #1A1A1C 100%);
  color: var(--yt-white);
}

.yt-page-hero--dark,
.yt-page-hero--image {
  display: flex;
  align-items: center;
  min-height: 380px;
}

.yt-page-hero--image {
  background-color: #0B0B0C;
  background-image: var(--yt-page-hero-image);
  background-position: center;
  background-size: cover;
  color: var(--yt-white);
}

.yt-page-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.yt-page-hero__inner {
  position: relative;
  z-index: 1;
}

.yt-page-hero__inner > .yt-breadcrumbs {
  margin-bottom: 24px;
}

.yt-page-hero__title {
  max-width: 900px;
  margin: 0;
  color: var(--yt-black);
  font-size: var(--yt-fs-48);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-56);
  overflow-wrap: break-word;
}

.yt-page-hero__sub {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-18);
  line-height: var(--yt-lh-28);
}

.yt-page-hero__kicker {
  margin: 0 0 12px;
  color: var(--yt-red);
}

.yt-page-hero--dark .yt-page-hero__kicker,
.yt-page-hero--image .yt-page-hero__kicker {
  color: var(--yt-white);
}

.yt-page-hero--dark .yt-page-hero__title,
.yt-page-hero--image .yt-page-hero__title {
  color: var(--yt-white);
}

.yt-page-hero--dark .yt-page-hero__sub,
.yt-page-hero--image .yt-page-hero__sub {
  color: rgba(255, 255, 255, 0.75);
}

.yt-page-hero--dark .yt-breadcrumbs,
.yt-page-hero--image .yt-breadcrumbs,
.yt-page-hero--dark .yt-breadcrumbs__link,
.yt-page-hero--image .yt-breadcrumbs__link {
  color: rgba(255, 255, 255, 0.7);
}

.yt-page-hero--dark .yt-breadcrumbs__sep,
.yt-page-hero--image .yt-breadcrumbs__sep {
  color: rgba(255, 255, 255, 0.45);
}

.yt-page-hero--dark .yt-breadcrumbs__current,
.yt-page-hero--image .yt-breadcrumbs__current,
.yt-page-hero--dark .yt-breadcrumbs [aria-current="page"],
.yt-page-hero--image .yt-breadcrumbs [aria-current="page"] {
  color: var(--yt-white);
}

.yt-page-hero--dark .yt-breadcrumbs__link:hover,
.yt-page-hero--image .yt-breadcrumbs__link:hover {
  color: var(--yt-white);
}

.yt-page-hero__search {
  margin-top: 32px;
}

.yt-page-hero__search .yt-search-form {
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   News index (/news/)
   -------------------------------------------------------------------------- */
.yt-news-index__content {
  padding-block: 40px 100px;
}

.yt-news-index__tabs {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--yt-line);
}

.yt-news-index__featured {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  min-width: 0;
  overflow: hidden;
  background: var(--yt-bg-soft);
  color: var(--yt-ink);
  text-decoration: none;
  transition: background-color var(--yt-dur) var(--yt-ease);
}

.yt-news-index__featured:hover {
  background: #ECECEF;
}

.yt-news-index__featured-media {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--yt-line);
}

.yt-news-index__featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--yt-dur-slow) var(--yt-ease);
}

.yt-news-index__featured:hover .yt-news-index__featured-media img {
  transform: scale(1.03);
}

.yt-news-index__featured-media .yt-media-placeholder {
  height: 100%;
  min-height: 380px;
}

.yt-news-index__featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px;
}

.yt-news-index__featured-body .yt-badge {
  margin-bottom: 20px;
}

.yt-news-index__featured-title {
  margin: 0;
  color: inherit;
  font-size: var(--yt-fs-32);
  font-weight: var(--yt-fw-bold);
  line-height: 1.2;
  overflow-wrap: break-word;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-news-index__featured:hover .yt-news-index__featured-title {
  color: var(--yt-red);
}

.yt-news-index__featured-text {
  display: -webkit-box;
  max-width: 520px;
  margin: 20px 0 0;
  overflow: hidden;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.yt-news-index__featured-meta {
  margin: 28px 0 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-news-index__featured-meta .yt-meta {
  color: inherit;
}

.yt-news-index__grid {
  margin-top: 48px;
}

.yt-news-index__content .yt-pagination {
  margin-top: 64px;
}

/* --------------------------------------------------------------------------
   Post card (news index, related, search)
   -------------------------------------------------------------------------- */
.yt-post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  color: var(--yt-ink);
}

.yt-post-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--yt-bg-soft);
}

.yt-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--yt-dur-slow) var(--yt-ease);
}

.yt-post-card:hover .yt-post-card__media img {
  transform: scale(1.03);
}

.yt-post-card__media .yt-media-placeholder {
  height: 100%;
  min-height: 100%;
}

.yt-post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-top: 20px;
}

.yt-post-card__meta {
  margin: 0 0 12px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-post-card__meta .yt-meta {
  color: inherit;
}

.yt-post-card__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--yt-ink);
  font-size: var(--yt-fs-20);
  font-weight: var(--yt-fw-regular);
  line-height: 30px;
  overflow-wrap: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.yt-post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-post-card:hover .yt-post-card__title a,
.yt-post-card__title a:hover {
  color: var(--yt-red);
}

.yt-post-card__excerpt {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.yt-post-card--compact .yt-post-card__body {
  padding-top: 14px;
}

.yt-post-card--compact .yt-post-card__title {
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
}

.yt-post-card__media:focus-visible,
.yt-post-card__title a:focus-visible {
  outline: 2px solid var(--yt-red);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */
.yt-post__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 480px;
  overflow: hidden;
  background: #0B0B0C;
}

.yt-post__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.yt-post__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-post__hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 56px;
  color: var(--yt-white);
}

.yt-post__hero--text {
  min-height: 0;
  background: var(--yt-bg-soft);
  color: var(--yt-ink);
}

.yt-post__hero--text::after {
  display: none;
}

.yt-post__hero--text .yt-post__hero-content {
  padding-top: 56px;
  padding-bottom: 48px;
}

.yt-post__hero:not(.yt-post__hero--text) .yt-breadcrumbs,
.yt-post__hero:not(.yt-post__hero--text) .yt-breadcrumbs__link {
  color: rgba(255, 255, 255, 0.7);
}

.yt-post__hero:not(.yt-post__hero--text) .yt-breadcrumbs__sep {
  color: rgba(255, 255, 255, 0.45);
}

.yt-post__hero:not(.yt-post__hero--text) .yt-breadcrumbs__current,
.yt-post__hero:not(.yt-post__hero--text) .yt-breadcrumbs [aria-current="page"] {
  color: var(--yt-white);
}

.yt-post__hero:not(.yt-post__hero--text) .yt-breadcrumbs__link:hover {
  color: var(--yt-white);
}

.yt-post__meta {
  margin: 20px 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-post__meta .yt-meta {
  color: inherit;
}

.yt-post__hero--text .yt-post__meta {
  color: var(--yt-gray-60);
}

.yt-post__title {
  max-width: 1000px;
  margin: 0;
  color: var(--yt-white);
  font-size: var(--yt-fs-40);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-48);
  overflow-wrap: break-word;
}

.yt-post__hero--text .yt-post__title {
  color: var(--yt-black);
}

.yt-post__layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 200px;
  justify-content: space-between;
  gap: 64px;
  padding-block: 64px 80px;
}

.yt-post__content {
  min-width: 0;
  max-width: var(--yt-prose-max);
}

.yt-post__share {
  position: sticky;
  top: calc(var(--yt-header-h) + 32px);
  align-self: start;
  padding-top: 8px;
}

.yt-share {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yt-share__title {
  margin: 0 0 8px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-21);
}

.yt-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-radius);
  background: var(--yt-white);
  color: var(--yt-ink);
  cursor: pointer;
  transition:
    border-color var(--yt-dur-fast) var(--yt-ease),
    color var(--yt-dur-fast) var(--yt-ease),
    background-color var(--yt-dur-fast) var(--yt-ease);
}

.yt-share__btn:hover {
  border-color: var(--yt-red);
  background: var(--yt-red);
  color: var(--yt-white);
}

.yt-share__btn:focus-visible {
  outline: 2px solid var(--yt-red);
  outline-offset: 2px;
}

.yt-share__status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-12);
  line-height: var(--yt-lh-16);
}

.yt-related-posts {
  border-top: 1px solid var(--yt-line);
}

/* --------------------------------------------------------------------------
   Default page body
   -------------------------------------------------------------------------- */
.yt-page__content {
  padding-block: 64px 100px;
}

/* --------------------------------------------------------------------------
   About / sustainability
   -------------------------------------------------------------------------- */
.yt-about__body {
  padding-block: 80px 100px;
}

.yt-about__body > .yt-container > .yt-prose {
  max-width: none;
}

.yt-about__body .yt-prose > p,
.yt-about__body .yt-prose > h2,
.yt-about__body .yt-prose > h3 {
  max-width: var(--yt-prose-max);
}

.yt-about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 56px 0 0;
}

.yt-about__stat {
  min-width: 0;
  padding: 32px 28px;
  border-top: 2px solid var(--yt-red);
  background: var(--yt-bg-soft);
}

.yt-about__stat strong {
  display: block;
  color: var(--yt-black);
  font-size: var(--yt-fs-32);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-40);
}

.yt-about__stat span {
  display: block;
  margin-top: 8px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-about__block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
  margin: 64px 0 0;
}

.yt-about__block--reverse .yt-about__block-media {
  order: 2;
}

.yt-about__block-media {
  min-width: 0;
  overflow: hidden;
  background: var(--yt-bg-soft);
}

.yt-about__block-media img {
  display: block;
  width: 100%;
  height: auto;
}

.yt-about__block-body {
  min-width: 0;
}

.yt-about__block-body h2,
.yt-about__block-body h3 {
  margin: 0 0 16px;
  font-size: var(--yt-fs-32);
  line-height: var(--yt-lh-40);
}

.yt-about__block-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.yt-services__body {
  max-width: none;
}

.yt-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.yt-service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 40px 32px;
  border: 1px solid var(--yt-line);
  background: var(--yt-white);
  transition: border-color var(--yt-dur) var(--yt-ease);
}

.yt-service-card:hover {
  border-color: var(--yt-red);
}

.yt-service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--yt-red);
}

.yt-service-card__title,
.yt-services__body .yt-service-card__title {
  margin: 24px 0 12px;
  color: var(--yt-black);
  font-size: var(--yt-fs-20);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-28);
}

.yt-service-card__text,
.yt-services__body .yt-service-card__text {
  margin: 0 0 24px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
}

.yt-service-card .yt-link-arrow,
.yt-services__body .yt-link-arrow {
  margin-top: auto;
  color: var(--yt-ink);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Documents center
   -------------------------------------------------------------------------- */
.yt-documents {
  padding-block: 0 100px;
}

.yt-docs__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-block: 48px 24px;
  border-bottom: 1px solid var(--yt-line);
}

.yt-docs__filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 320px;
}

.yt-docs__filter .yt-field__label {
  margin: 0;
}

.yt-docs__list {
  display: block;
}

.yt-doc-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 20px;
  padding: 20px 12px;
  margin-inline: -12px;
  border-bottom: 1px solid var(--yt-line);
  color: var(--yt-ink);
  text-decoration: none;
  transition: background-color var(--yt-dur-fast) var(--yt-ease);
}

.yt-doc-item:hover {
  background: var(--yt-bg-soft);
}

.yt-doc-item:focus-visible {
  outline: 2px solid var(--yt-red);
  outline-offset: -2px;
}

.yt-doc-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--yt-red);
}

.yt-doc-item__body {
  min-width: 0;
}

.yt-doc-item__title {
  display: block;
  color: var(--yt-ink);
  font-size: var(--yt-fs-16);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-24);
  overflow-wrap: break-word;
}

.yt-doc-item__meta {
  display: block;
  margin-top: 4px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-doc-item__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--yt-gray);
  transition:
    color var(--yt-dur-fast) var(--yt-ease),
    transform var(--yt-dur-fast) var(--yt-ease);
}

.yt-doc-item:hover .yt-doc-item__arrow {
  color: var(--yt-red);
  transform: translateY(2px);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.yt-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 64px;
  padding-block: 80px 100px;
}

.yt-contact__info {
  min-width: 0;
}

.yt-contact__title {
  margin: 0 0 24px;
  color: var(--yt-black);
  font-size: var(--yt-fs-24);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-32);
}

.yt-contact__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yt-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: var(--yt-ink);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
  overflow-wrap: break-word;
}

.yt-contact__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 24px;
  color: var(--yt-red);
}

.yt-contact__item a {
  color: inherit;
  text-decoration: none;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-contact__item a:hover {
  color: var(--yt-red);
}

.yt-contact__intro {
  max-width: none;
  margin-top: 32px;
}

.yt-contact__form {
  width: 100%;
  max-width: 640px;
  padding: 40px;
  border: 1px solid var(--yt-line);
  background: var(--yt-white);
}

.yt-contact__form .yt-form__success-title {
  margin: 0 0 8px;
  font-size: var(--yt-fs-20);
  line-height: var(--yt-lh-28);
}

.yt-contact__form .yt-form__success-text {
  margin: 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
}

/* --------------------------------------------------------------------------
   Legal
   -------------------------------------------------------------------------- */
.yt-legal__layout {
  padding-block: 64px 100px;
}

.yt-legal__body {
  max-width: 800px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.yt-404__inner {
  padding-block: 120px 140px;
  text-align: center;
}

.yt-404__code {
  margin: 0;
  color: var(--yt-red);
  font-size: 120px;
  font-weight: var(--yt-fw-bold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.yt-404__title {
  margin: 16px 0 12px;
  color: var(--yt-black);
  font-size: var(--yt-fs-40);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-48);
}

.yt-404__text {
  max-width: 560px;
  margin: 0 auto;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-18);
  line-height: var(--yt-lh-28);
}

.yt-404__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.yt-404__search {
  max-width: 560px;
  margin: 48px auto 0;
}

.yt-404__search .yt-search-form {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Search results
   -------------------------------------------------------------------------- */
.yt-search-page__body {
  padding-block: 0 100px;
}

.yt-search-page__group {
  margin-top: 56px;
}

.yt-search-page__group:first-child {
  margin-top: 24px;
}

.yt-search-page__group-title {
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--yt-line);
  color: var(--yt-black);
  font-size: var(--yt-fs-24);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-32);
}

.yt-search-page__pages {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yt-search-page__page {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--yt-line);
}

.yt-search-page__page-title {
  display: block;
  color: var(--yt-ink);
  font-size: var(--yt-fs-16);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-24);
  text-decoration: none;
  overflow-wrap: break-word;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-search-page__page-title:hover {
  color: var(--yt-red);
}

.yt-search-page__page-excerpt {
  display: block;
  margin-top: 4px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-search-page__body .yt-pagination {
  margin-top: 64px;
}

.yt-search-page .yt-empty .yt-search-form {
  margin: 24px auto 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .yt-news-index__featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .yt-news-index__featured-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .yt-news-index__featured-media img {
    position: absolute;
  }

  .yt-news-index__featured-body {
    padding: 32px;
  }

  .yt-post__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .yt-post__share {
    position: static;
    padding-top: 0;
  }

  .yt-share {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .yt-share__title {
    width: 100%;
    margin-bottom: 0;
  }

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

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

  .yt-about__stat:last-child {
    grid-column: 1 / -1;
  }

  .yt-contact__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 56px 80px;
  }

  .yt-contact__form {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .yt-page-hero {
    padding: 40px 0 32px;
  }

  .yt-page-hero--dark,
  .yt-page-hero--image {
    min-height: 320px;
  }

  .yt-page-hero__inner > .yt-breadcrumbs {
    margin-bottom: 16px;
  }

  .yt-page-hero__title {
    font-size: var(--yt-fs-32);
    line-height: var(--yt-lh-40);
  }

  .yt-page-hero__sub {
    margin-top: 12px;
    font-size: var(--yt-fs-16);
    line-height: var(--yt-lh-24);
  }

  .yt-page-hero__kicker {
    margin-bottom: 8px;
  }

  .yt-news-index__content {
    padding-block: 32px 56px;
  }

  .yt-news-index__tabs {
    margin-bottom: 28px;
  }

  .yt-news-index__featured-body {
    padding: 24px;
  }

  .yt-news-index__featured-title {
    font-size: var(--yt-fs-24);
    line-height: var(--yt-lh-32);
  }

  .yt-news-index__featured-text {
    margin-top: 16px;
    font-size: var(--yt-fs-14);
    line-height: var(--yt-lh-21);
  }

  .yt-news-index__featured-meta {
    margin-top: 20px;
  }

  .yt-news-index__grid {
    margin-top: 32px;
  }

  .yt-news-index__content .yt-pagination,
  .yt-search-page__body .yt-pagination {
    margin-top: 40px;
  }

  .yt-post-card__title {
    font-size: var(--yt-fs-18);
    line-height: 1.5;
  }

  .yt-post__hero {
    min-height: 360px;
  }

  .yt-post__hero-content {
    padding-top: 96px;
    padding-bottom: 32px;
  }

  .yt-post__hero--text .yt-post__hero-content {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .yt-post__title {
    font-size: var(--yt-fs-32);
    line-height: var(--yt-lh-40);
  }

  .yt-post__layout {
    padding-block: 40px 56px;
  }

  .yt-page__content {
    padding-block: 40px 56px;
  }

  .yt-about__body {
    padding-block: 48px 56px;
  }

  .yt-about__stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 40px;
  }

  .yt-about__stat:last-child {
    grid-column: auto;
  }

  .yt-about__stat {
    padding: 24px 20px;
  }

  .yt-about__stat strong {
    font-size: var(--yt-fs-24);
    line-height: var(--yt-lh-32);
  }

  .yt-about__block {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 40px;
  }

  .yt-about__block--reverse .yt-about__block-media {
    order: 0;
  }

  .yt-about__block-body h2,
  .yt-about__block-body h3 {
    font-size: var(--yt-fs-24);
    line-height: var(--yt-lh-32);
  }

  .yt-services__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .yt-service-card {
    padding: 28px 24px;
  }

  .yt-documents {
    padding-bottom: 56px;
  }

  .yt-docs__toolbar {
    align-items: stretch;
    padding-block: 32px 20px;
  }

  .yt-docs__filter {
    max-width: none;
  }

  .yt-doc-item {
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    gap: 14px;
    padding: 16px 8px;
    margin-inline: -8px;
  }

  .yt-doc-item__icon {
    width: 32px;
    height: 32px;
  }

  .yt-doc-item__title {
    font-size: var(--yt-fs-15);
  }

  .yt-doc-item__meta {
    font-size: var(--yt-fs-13);
  }

  .yt-contact__layout {
    padding-block: 40px 56px;
  }

  .yt-contact__form {
    padding: 24px 20px;
  }

  .yt-legal__layout {
    padding-block: 40px 56px;
  }

  .yt-404__inner {
    padding-block: 72px 80px;
  }

  .yt-404__code {
    font-size: 80px;
  }

  .yt-404__title {
    font-size: var(--yt-fs-32);
    line-height: var(--yt-lh-40);
  }

  .yt-404__text {
    font-size: var(--yt-fs-16);
    line-height: var(--yt-lh-24);
  }

  .yt-404__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .yt-404__actions .yt-btn {
    width: 100%;
  }

  .yt-search-page__body {
    padding-bottom: 56px;
  }

  .yt-search-page__group {
    margin-top: 40px;
  }

  .yt-search-page__group:first-child {
    margin-top: 16px;
  }

  .yt-search-page__group-title {
    margin-bottom: 24px;
    font-size: var(--yt-fs-20);
    line-height: var(--yt-lh-28);
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .yt-post-card__media img,
  .yt-news-index__featured-media img,
  .yt-doc-item__arrow,
  .yt-post-card__title a,
  .yt-news-index__featured-title {
    transition: none;
  }

  .yt-post-card:hover .yt-post-card__media img,
  .yt-news-index__featured:hover .yt-news-index__featured-media img,
  .yt-doc-item:hover .yt-doc-item__arrow {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Inner page builder: landing, resources, support tools
   -------------------------------------------------------------------------- */
.yt-landing,
.yt-resource,
.yt-support {
  padding-block: 72px 100px;
}

.yt-landing__intro,
.yt-resource__intro,
.yt-support__intro {
  max-width: 860px;
  margin-bottom: 56px;
}

.yt-stat-row {
  display: grid;
  grid-template-columns: repeat(var(--yt-stat-count, 3), minmax(0, 1fr));
  gap: 1px;
  margin: 56px 0 72px;
  border: 1px solid var(--yt-line);
  background: var(--yt-line);
}

.yt-stat {
  padding: 32px 28px;
  background: var(--yt-white);
}

.yt-stat__value {
  display: block;
  color: var(--yt-ink);
  font-size: 32px;
  font-weight: var(--yt-fw-bold);
  line-height: 1.15;
}

.yt-stat__label {
  display: block;
  margin-top: 8px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 72px;
}

.yt-card-grid--compact {
  margin-bottom: 48px;
}

.yt-info-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 32px;
  background: var(--yt-bg-soft);
  color: var(--yt-ink);
  text-decoration: none;
  transition:
    background-color var(--yt-dur) var(--yt-ease),
    transform var(--yt-dur) var(--yt-ease);
}

a.yt-info-card:hover {
  background: #ececef;
  transform: translateY(-2px);
}

.yt-info-card__image {
  width: calc(100% + 64px);
  max-width: none;
  height: 160px;
  margin: -32px -32px 24px;
  object-fit: cover;
}

.yt-info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: var(--yt-red);
}

.yt-info-card__title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: var(--yt-fw-bold);
  line-height: 32px;
}

.yt-info-card__text {
  margin: 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
}

.yt-info-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--yt-ink);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

a.yt-info-card:hover .yt-info-card__link {
  color: var(--yt-red);
}

.yt-info-card--compact {
  flex-direction: row;
  gap: 18px;
  min-height: 0;
  padding: 24px;
}

.yt-info-card--compact .yt-info-card__icon {
  flex: 0 0 auto;
  margin: 0;
}

.yt-info-card--compact .yt-info-card__title {
  font-size: 20px;
  line-height: 28px;
}

.yt-info-card--compact .yt-info-card__text {
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-landing__blocks {
  display: grid;
  gap: 80px;
  margin: 24px 0 80px;
}

.yt-about__block--dark {
  padding: 48px;
  background: var(--yt-black);
  color: var(--yt-white);
}

.yt-about__block--dark h2 {
  color: var(--yt-white);
}

.yt-about__block--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.yt-about__block--dark .yt-about__block-media img {
  opacity: 0.9;
}

.yt-faq {
  margin-top: 72px;
}

.yt-faq__title {
  margin: 0 0 28px;
  font-size: 32px;
  line-height: 48px;
  text-align: center;
}

.yt-faq__list {
  max-width: 960px;
  margin-inline: auto;
  border-top: 1px solid var(--yt-line);
}

.yt-faq__item {
  border-bottom: 1px solid var(--yt-line);
}

.yt-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--yt-ink);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
  cursor: pointer;
  list-style: none;
}

.yt-faq__question::-webkit-details-marker {
  display: none;
}

.yt-faq__question svg {
  flex: 0 0 auto;
  transition: transform var(--yt-dur-fast) var(--yt-ease);
}

.yt-faq__item[open] .yt-faq__question svg {
  transform: rotate(180deg);
}

.yt-faq__answer {
  max-width: 820px;
  padding: 0 0 24px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
}

.yt-faq__answer > :first-child {
  margin-top: 0;
}

.yt-faq__answer > :last-child {
  margin-bottom: 0;
}

.yt-cta__text {
  max-width: 640px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
}

/* Resource library */
.yt-resource__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 8px;
}

.yt-resource__toolbar .yt-filter-bar {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.yt-resource__search {
  position: relative;
  flex: 0 1 320px;
  min-width: 220px;
}

.yt-resource__search .yt-field__input,
.yt-directory__search .yt-field__input {
  padding-right: 44px;
}

.yt-resource__clear,
.yt-directory__clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--yt-gray-60);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color var(--yt-dur-fast) var(--yt-ease),
    background-color var(--yt-dur-fast) var(--yt-ease);
}

.yt-resource__clear:hover,
.yt-directory__clear:hover {
  background: var(--yt-bg-soft);
  color: var(--yt-red);
}

.yt-resource__clear:focus-visible,
.yt-directory__clear:focus-visible {
  outline: 2px solid var(--yt-red);
  outline-offset: 1px;
}

.yt-resource__count {
  margin: 16px 0 32px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 40px;
  border-bottom: 1px solid var(--yt-line);
}

.yt-filter-bar__item {
  position: relative;
  padding: 0 0 14px;
  border: 0;
  background: none;
  color: var(--yt-gray-60);
  font: inherit;
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
  cursor: pointer;
}

.yt-filter-bar__item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--yt-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--yt-dur-fast) var(--yt-ease);
}

.yt-filter-bar__item.is-active {
  color: var(--yt-red);
  font-weight: var(--yt-fw-bold);
}

.yt-filter-bar__item.is-active::after {
  transform: scaleX(1);
}

.yt-filter-bar__item:focus-visible {
  outline: 2px solid var(--yt-red);
  outline-offset: 3px;
}

.yt-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}

.yt-resource-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--yt-ink);
  text-decoration: none;
}

.yt-resource-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--yt-bg-soft);
}

.yt-resource-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--yt-dur-slow) var(--yt-ease);
}

.yt-resource-card:hover .yt-resource-card__image {
  transform: scale(1.03);
}

.yt-resource-card__body {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
}

.yt-resource-card__title {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 30px;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-resource-card:hover .yt-resource-card__title {
  color: var(--yt-red);
}

.yt-resource-card__text {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.yt-resource-card__meta {
  margin-top: 12px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-12);
  line-height: 18px;
}

.yt-resource__empty {
  padding: 48px 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  text-align: center;
}

/* Support tools */
.yt-support__form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  margin: 24px 0 72px;
  padding: 56px;
  background: var(--yt-bg-soft);
}

.yt-support__form-title {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 42px;
}

.yt-support__form-note {
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
}

.yt-support__assurance {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
  list-style: none;
}

.yt-support__assurance li {
  position: relative;
  padding-left: 24px;
}

.yt-support__assurance li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--yt-red);
}

.yt-support__form-panel {
  padding: 32px;
  background: var(--yt-white);
}

.yt-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.yt-form__required {
  margin: -4px 0 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-12);
  line-height: 18px;
}

.yt-directory {
  margin: 24px 0 72px;
}

.yt-directory__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.yt-directory__title {
  margin: 0;
  font-size: 32px;
  line-height: 42px;
}

.yt-directory__heading {
  min-width: 0;
}

.yt-directory__count {
  margin: 6px 0 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-directory__search {
  position: relative;
  width: min(100%, 360px);
}

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

.yt-directory-card {
  padding: 28px;
  border: 1px solid var(--yt-line);
  background: var(--yt-white);
}

.yt-directory-card__logo {
  display: flex;
  align-items: center;
  height: 64px;
  margin-bottom: 20px;
}

.yt-directory-card__logo img {
  max-width: 140px;
  max-height: 56px;
  object-fit: contain;
}

.yt-directory-card__name {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 28px;
}

.yt-directory-card__meta {
  margin: 0 0 18px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-hotlines {
  margin: 24px 0 72px;
}

.yt-hotlines__title {
  margin: 0 0 32px;
  font-size: 32px;
  line-height: 42px;
}

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

.yt-hotline {
  padding: 28px;
  border: 1px solid var(--yt-line);
}

.yt-hotline__region {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 28px;
}

.yt-hotline__line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--yt-ink);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-hotline__line a {
  color: inherit;
}

.yt-hotline__icon {
  display: inline-flex;
  color: var(--yt-red);
}

.yt-hotline__hours {
  margin: 14px 0 0;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-12);
  line-height: 18px;
}

@media (max-width: 1023px) {
  .yt-card-grid,
  .yt-resource-grid,
  .yt-directory__grid,
  .yt-hotline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yt-support__form-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px;
  }

  .yt-resource__toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .yt-resource__search {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .yt-stat-row {
    grid-template-columns: repeat(var(--yt-stat-count, 3), minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .yt-landing,
  .yt-resource,
  .yt-support {
    padding-block: 48px 64px;
  }

  .yt-landing__intro,
  .yt-resource__intro,
  .yt-support__intro {
    margin-bottom: 36px;
  }

  .yt-stat-row {
    grid-template-columns: minmax(0, 1fr);
    margin: 36px 0 48px;
  }

  .yt-stat {
    padding: 22px 20px;
  }

  .yt-stat__value {
    font-size: 24px;
  }

  .yt-card-grid,
  .yt-resource-grid,
  .yt-directory__grid,
  .yt-hotline-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .yt-info-card {
    min-height: 0;
    padding: 24px;
  }

  .yt-info-card__image {
    width: calc(100% + 48px);
    margin: -24px -24px 20px;
  }

  .yt-info-card--compact {
    padding: 20px;
  }

  .yt-landing__blocks {
    gap: 40px;
    margin-bottom: 48px;
  }

  .yt-about__block--dark {
    padding: 28px;
  }

  .yt-faq {
    margin-top: 48px;
  }

  .yt-faq__title,
  .yt-support__form-title,
  .yt-directory__title,
  .yt-hotlines__title {
    font-size: 24px;
    line-height: 32px;
  }

  .yt-support__form-wrap {
    padding: 24px;
  }

  .yt-support__form-panel {
    padding: 22px;
  }

  .yt-form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .yt-directory__head {
    flex-direction: column;
    align-items: stretch;
  }

  .yt-directory__search {
    width: 100%;
  }

  .yt-resource__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .yt-resource__search {
    flex: 0 0 auto;
  }

  .yt-resource__count {
    margin: 12px 0 24px;
  }

  .yt-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .yt-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .yt-filter-bar__item {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Product line landing
   -------------------------------------------------------------------------- */
.yt-pl {
  padding-block: 72px 100px;
}

.yt-pl__intro {
  max-width: 860px;
  margin-bottom: 56px;
}

.yt-pl .yt-stat-row {
  margin: 0 0 72px;
}

.yt-pl__scenarios {
  margin-bottom: 72px;
}

.yt-pl__scenarios .yt-card-grid {
  margin-bottom: 0;
}

.yt-pl__products {
  margin-top: 72px;
}

.yt-pl__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin: 0 0 32px;
}

.yt-pl__title {
  margin: 0;
  color: var(--yt-black);
  font-size: var(--yt-fs-32);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-40);
  overflow-wrap: break-word;
}

.yt-pl__view-all {
  flex: 0 0 auto;
}

.yt-pl-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}

.yt-pl__empty {
  margin-top: 8px;
  border: 1px solid var(--yt-line);
  background: var(--yt-bg-soft);
}

@media (max-width: 1023px) {
  .yt-pl-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .yt-pl__title {
    font-size: var(--yt-fs-24);
    line-height: var(--yt-lh-32);
  }
}

@media (max-width: 767px) {
  .yt-pl {
    padding-block: 48px 64px;
  }

  .yt-pl__intro {
    margin-bottom: 36px;
  }

  .yt-pl .yt-stat-row {
    margin: 0 0 48px;
  }

  .yt-pl__scenarios {
    margin-bottom: 48px;
  }

  .yt-pl__products {
    margin-top: 48px;
  }

  .yt-pl__head {
    margin-bottom: 24px;
  }

  .yt-pl-products {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px 16px;
  }
}
