.wp-site-blocks {
  overflow-x: clip;
}

@media (max-width: 1231px) {
  .newspad-article-grid {
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .newspad-side-ad {
    display: none;
  }
}

@media (max-width: 800px) {
  .newspad-shell {
    width: min(100% - 24px, 1200px);
  }

  .newspad-nav {
    overflow: hidden;
  }

  .newspad-nav::after {
    position: absolute;
    top: 1px;
    right: 0;
    bottom: 0;
    width: 36px;
    background: linear-gradient(90deg, rgb(255 255 255 / 0%), #fff 76%);
    content: "";
    pointer-events: none;
  }

  .newspad-nav .newspad-shell {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .newspad-nav .newspad-shell::-webkit-scrollbar {
    display: none;
  }

  .newspad-nav ul {
    min-width: max-content;
    flex-wrap: nowrap;
    gap: 18px;
    padding: 0 32px 0 0;
  }

  .newspad-nav a {
    display: flex;
    min-inline-size: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .newspad-card-grid,
  .wp-block-post-template.newspad-card-grid.is-flex-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newspad-rv-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .newspad-rv-lead .newspad-home-card__image img {
    min-height: 420px;
  }

  .newspad-rv-latest .newspad-card-grid,
  .newspad-rv-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newspad-covan-disclosure {
    align-items: flex-start;
    flex-direction: column;
  }

  .newspad-footer__grid {
    grid-template-columns: 1fr;
  }

  .newspad-article,
  .newspad-article__header,
  .newspad-article__content,
  .newspad-page,
  .newspad-tool,
  .newspad-character-layout,
  .newspad-character-layout > * {
    min-width: 0;
    max-width: 100%;
  }

  .newspad-article__header h1,
  .newspad-article__summary,
  .newspad-article__content,
  .newspad-character-groups button {
    overflow-wrap: anywhere;
  }

  .newspad-character-groups button {
    min-width: 0;
  }

  .newspad-article__header h1 {
    font-size: clamp(29px, 7vw, 34px);
    line-height: 1.25;
  }

  .newspad-article__summary {
    font-size: 17px;
    line-height: 1.75;
  }

  .newspad-article__content {
    font-size: 16px;
    line-height: 1.85;
  }

  .newspad-article__content h2 {
    margin-top: 38px;
    font-size: clamp(22px, 5.5vw, 26px);
  }

  .newspad-article__image img,
  .newspad-article__content img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  main {
    padding-block: 24px;
  }

  .newspad-header__top {
    gap: 16px;
    padding: 10px 0;
  }

  .newspad-header__top > a:last-child {
    display: none;
  }

  .newspad-brand {
    min-width: 0;
  }

  .newspad-brand__logo {
    width: min(230px, calc(100vw - 48px));
  }

  .newspad-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .newspad-section-heading > div {
    min-width: 0;
  }

  .newspad-section-heading small {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.4;
  }

  .newspad-section-heading h1,
  .newspad-section-heading h2 {
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.3;
    letter-spacing: -0.03em;
    word-break: keep-all;
  }

  .newspad-section-heading > a {
    display: flex;
    align-self: end;
    min-height: 44px;
    align-items: center;
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
  }

  .newspad-card-grid,
  .wp-block-post-template.newspad-card-grid.is-flex-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .newspad-rv-home {
    gap: 42px;
  }

  .newspad-rv-hero {
    border-radius: 10px;
  }

  .newspad-rv-hero__intro {
    padding: 30px 22px;
  }

  .newspad-rv-hero__intro h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .newspad-rv-lead .newspad-home-card__image img {
    min-height: 360px;
  }

  .newspad-rv-lead .newspad-card__body {
    padding: 22px;
  }

  .newspad-rv-latest .newspad-card-grid,
  .newspad-rv-section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .newspad-rv-section {
    min-height: 240px;
  }

  .newspad-card-grid > li:first-child .newspad-card > .wp-block-post-featured-image {
    aspect-ratio: 16 / 9 !important;
  }

  .newspad-card-grid > li:first-child .newspad-card img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .newspad-card-grid > li:first-child .newspad-card__body {
    padding: 14px;
  }

  .newspad-card-grid > li:first-child .newspad-card h2,
  .newspad-card-grid > li:first-child .newspad-card h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .newspad-card-grid > li:first-child .newspad-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .newspad-card-grid > li:not(:first-child) .newspad-card {
    display: grid;
    min-height: 112px;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .newspad-card-grid > li:not(:first-child) .newspad-card > .wp-block-post-featured-image {
    position: relative;
    height: auto;
    min-height: 112px;
    aspect-ratio: auto !important;
    overflow: hidden;
  }

  .newspad-card-grid > li:not(:first-child) .newspad-card > .wp-block-post-featured-image a {
    position: absolute;
    inset: 0;
    display: block;
  }

  .newspad-card-grid > li:not(:first-child) .newspad-card img {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .newspad-card-grid > li:not(:first-child) .newspad-card__body {
    min-width: 0;
    padding: 12px;
  }

  .newspad-card-grid > li:not(:first-child) .newspad-card__body:only-child {
    grid-column: 1 / -1;
  }

  .newspad-card-grid > li:not(:first-child) .newspad-card h2,
  .newspad-card-grid > li:not(:first-child) .newspad-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .newspad-card-grid > li:not(:first-child) .newspad-card p {
    display: none;
  }

  .newspad-article__header h1 {
    font-size: clamp(27px, 8vw, 31px);
  }

  .newspad-article__summary {
    font-size: 16px;
  }

  .newspad-author-profile {
    margin-bottom: 24px;
    padding: 20px;
  }

  .newspad-author-profile__bio {
    font-size: 16px;
  }

  .newspad-author-profile dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}
