/* Mobile v2: community feed, news, learning and summit compositions. */

.opc-mobile-ideas-toolbar,
.opc-mobile-ideas-pulse,
.opc-mobile-ideas-topics {
  display: none;
}

@media (max-width: 820px) {
  /* The four editorial views use the compact mobile masthead from the source. */
  .opc-page.opc-mobile-ready:is([data-mobile-view="ideas"], [data-mobile-view="summit"], [data-mobile-view="learning"], [data-mobile-view="news"]) .opc-header.tcwf-static-header {
    display: block;
  }

  .opc-page:is([data-mobile-view="ideas"], [data-mobile-view="summit"], [data-mobile-view="learning"], [data-mobile-view="news"]) .opc-header .tcwf-static-header__inner {
    gap: 4px;
  }

  .opc-page:is([data-mobile-view="ideas"], [data-mobile-view="summit"], [data-mobile-view="learning"], [data-mobile-view="news"]) .opc-header .opc-brand {
    margin-right: auto;
  }

  .opc-page:is([data-mobile-view="ideas"], [data-mobile-view="summit"], [data-mobile-view="learning"], [data-mobile-view="news"]) .opc-header .opc-header-tools {
    display: block !important;
    flex: 0 0 44px;
    order: 2;
  }

  .opc-page:is([data-mobile-view="ideas"], [data-mobile-view="summit"], [data-mobile-view="learning"], [data-mobile-view="news"]) .opc-header .opc-header-search {
    display: block;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .opc-page:is([data-mobile-view="ideas"], [data-mobile-view="summit"], [data-mobile-view="learning"], [data-mobile-view="news"]) .opc-header .opc-header-search input,
  .opc-page:is([data-mobile-view="ideas"], [data-mobile-view="summit"], [data-mobile-view="learning"], [data-mobile-view="news"]) .opc-header .opc-header-tools > .opc-icon-link {
    display: none !important;
  }

  .opc-page:is([data-mobile-view="ideas"], [data-mobile-view="summit"], [data-mobile-view="learning"], [data-mobile-view="news"]) .opc-header .tcwf-static-menu {
    display: grid !important;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    order: 3;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #17233d;
    background: transparent;
    font-size: 0;
  }

  .opc-page:is([data-mobile-view="ideas"], [data-mobile-view="summit"], [data-mobile-view="learning"], [data-mobile-view="news"]) .opc-header .tcwf-static-menu img {
    display: block;
    width: 24px;
    height: 24px;
  }

  .opc-page:is([data-mobile-view="ideas"], [data-mobile-view="summit"], [data-mobile-view="learning"], [data-mobile-view="news"]) .opc-header .tcwf-static-menu span {
    display: none;
  }

  /* Inspiration community — the map and feed are the default content. */
  .opc-page.opc-mobile-ready[data-mobile-view="ideas"] .opc-header.tcwf-static-header {
    display: none;
  }

  #ideas.tcwf-section {
    padding: 0 0 24px;
    background: #f5f7fa;
  }

  #ideas > .tcwf-section__inner {
    width: 100%;
    max-width: 680px;
    padding-inline: var(--opc-mobile-gutter, 16px);
  }

  #ideas .opc-heading-with-tools {
    display: flex;
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0;
    text-align: left;
  }

  .opc-page[data-mobile-view="ideas"] #main-content > #ideas .opc-heading-with-tools {
    display: none;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  #ideas .opc-mobile-ideas-toolbar {
    display: grid;
    min-height: 56px;
    grid-template-columns: max-content minmax(88px, 1fr) 44px max-content;
    align-items: center;
    gap: 5px;
    background: #fff;
  }

  #ideas .opc-mobile-ideas-toolbar > strong {
    color: #17233d;
    font-size: 17px;
    line-height: 24px;
    white-space: nowrap;
  }

  #ideas .opc-mobile-ideas-search {
    display: grid;
    height: 44px;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dfe5ed;
    border-radius: 22px;
    background: #f5f7fa;
  }

  #ideas .opc-mobile-ideas-search input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 0 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17233d;
    font-size: 11px;
  }

  #ideas .opc-mobile-ideas-search button,
  #ideas .opc-mobile-ideas-notice {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #ideas .opc-mobile-ideas-search img,
  #ideas .opc-mobile-ideas-notice img {
    display: block;
  }

  #ideas .opc-mobile-ideas-publish {
    min-width: 76px;
    min-height: 44px;
    padding-inline: 9px;
    border: 1px solid #0052d9;
    border-radius: 2px;
    color: #fff;
    background: #0052d9;
    font-size: 11px;
    white-space: nowrap;
  }

  .opc-page[data-mobile-view="ideas"] #main-content > #ideas .opc-heading-with-tools > div {
    flex: 1 1 auto;
    text-align: left;
  }

  #ideas .opc-heading-with-tools .tcwf-section__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
  }

  .opc-page[data-mobile-view="ideas"] #main-content > #ideas .opc-heading-with-tools .tcwf-section__title {
    width: 100%;
    margin: 0;
    text-align: left;
  }

  #ideas .opc-heading-with-tools .tcwf-section__description {
    display: none;
  }

  #ideas .opc-heading-with-tools > .tcwf-action {
    min-width: 88px;
    min-height: 44px;
    padding-inline: 12px;
    border-radius: 2px;
    font-size: 12px;
  }

  #ideas .opc-mobile-world-summary {
    display: none;
  }

  #ideas .opc-mobile-world-summary > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  #ideas .opc-mobile-world-summary > div span {
    align-items: center;
    border-right: 1px solid #e5e8ed;
    text-align: center;
  }

  #ideas .opc-mobile-world-summary > div span:last-child {
    border-right: 0;
  }

  #ideas .opc-mobile-world-summary > div strong {
    font-size: 18px;
    line-height: 23px;
  }

  #ideas .opc-mobile-world-summary > div small {
    font-size: 10px;
    line-height: 16px;
  }

  #ideas .opc-mobile-world-summary > button {
    display: none;
  }

  #ideas .opc-pixel-world {
    display: block;
    overflow: visible;
  }

  #ideas .world-toolbar {
    display: none;
  }

  #ideas .world-toolbar__identity {
    display: block;
  }

  #ideas .world-toolbar__eyebrow {
    margin-bottom: 3px;
    color: #52708f;
    font-size: 10px;
    line-height: 16px;
  }

  #ideas .world-toolbar__identity h3 {
    margin: 0;
    color: #17233d;
    font-size: 18px;
    line-height: 25px;
  }

  #ideas .world-toolbar__hint,
  #ideas .world-toolbar__actions {
    display: none !important;
  }

  #ideas .world-filterbar,
  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-filterbar {
    display: grid !important;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #fff;
  }

  #ideas .world-filterbar__group {
    display: block;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #e5e8ed;
  }

  #ideas .world-filterbar__group--category {
    order: -1;
  }

  #ideas .world-filterbar__label {
    display: none;
  }

  #ideas .world-filterbar__options {
    display: flex;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  #ideas .world-filterbar__options::-webkit-scrollbar {
    display: none;
  }

  #ideas .world-filterbar__options button {
    min-width: max-content;
    min-height: 44px;
    flex: 0 0 auto;
    padding-inline: 13px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: #fff;
    font-size: 11px;
  }

  #ideas .world-filterbar__options button[aria-pressed="true"],
  #ideas .world-filterbar__options button.is-active {
    border-bottom-color: #0052d9;
    color: #0052d9;
    background: #fff;
  }

  #ideas .world-workspace {
    display: block;
    height: auto;
  }

  #ideas .world-stage,
  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-stage {
    width: 100%;
    height: 160px;
    min-height: 160px;
    border: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 14px rgba(3, 27, 78, 0.08);
  }

  #ideas .opc-pixel-world:not([data-mobile-world-expanded="true"]) .world-stage canvas {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 3 / 2;
    object-fit: initial;
  }

  #ideas .opc-pixel-world[data-mobile-world-expanded="true"] .world-stage canvas {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
  }

  #ideas .world-stage__instruction,
  #ideas .world-stage__pan,
  #ideas .world-stage__legend {
    display: none !important;
  }

  #ideas .world-stage__scene {
    position: absolute;
    z-index: 6;
    top: 8px;
    left: 8px;
    display: grid !important;
    min-width: 122px;
    gap: 1px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: rgba(7, 42, 66, 0.9);
    box-shadow: 0 5px 14px rgba(3, 27, 78, 0.18);
    pointer-events: none;
  }

  #ideas .world-stage__scene > strong {
    order: -1;
    font-size: 12px;
    line-height: 17px;
  }

  #ideas .world-stage__scene > span {
    color: #d9e8f3;
    font-size: 9px;
    line-height: 14px;
    letter-spacing: 0;
  }

  #ideas .world-stage__scene button {
    min-height: 44px;
    margin-top: 4px;
    pointer-events: auto;
  }

  #ideas .world-stage > .world-stage__enter {
    position: absolute;
    z-index: 7;
    right: 8px;
    bottom: 8px;
    display: inline-flex !important;
    min-width: 92px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 28px 0 14px;
    border: 1px solid #d9e1ea;
    border-radius: 7px;
    color: #253554;
    background: #fff url("./tencent-cloud-foundation/ui-icons/arrow-right.svg") no-repeat right 10px center / 14px 14px;
    box-shadow: 0 4px 12px rgba(3, 27, 78, 0.12);
    font-size: 11px;
    font-weight: 600;
  }

  #ideas .world-stage > .world-stage__enter img {
    display: none;
  }

  #ideas .community-feed-panel {
    display: block;
    height: auto;
    min-height: 0;
    margin-top: 9px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #ideas .community-feed__header {
    display: none;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #ideas .community-feed__eyebrow {
    display: none;
  }

  #ideas .community-feed__header h3 {
    margin: 0;
    font-size: 17px;
    line-height: 25px;
  }

  #ideas .community-feed__header p {
    display: none;
  }

  #ideas .community-feed__map-note,
  #ideas .community-feed__search,
  #ideas .post-panel__footer {
    display: none;
  }

  #ideas .community-feed__tools {
    display: none;
  }

  #ideas .community-feed__viewbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    margin-top: 0;
    overflow: visible;
  }

  #ideas .community-feed__mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ideas .community-feed__viewbar button,
  #ideas .community-feed__viewbar select {
    min-height: 44px;
    border-radius: 2px;
    font-size: 11px;
  }

  #ideas .community-feed__sort {
    display: grid;
    grid-template-columns: auto;
  }

  #ideas .community-feed__sort > span {
    display: none;
  }

  #ideas .community-feed {
    display: grid;
    gap: 9px;
    padding: 0;
    overflow: visible;
  }

  #ideas .opc-mobile-ideas-pulse {
    display: block;
    margin-top: 7px;
    padding: 7px 8px 8px;
    border: 1px solid #e2e7ee;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(3, 27, 78, 0.05);
  }

  #ideas .opc-mobile-ideas-pulse h3 {
    margin: 0 1px 4px;
    color: #17233d;
    font-size: 15px;
    line-height: 19px;
  }

  #ideas .opc-mobile-ideas-pulse > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  #ideas .opc-mobile-ideas-pulse span {
    display: flex;
    min-width: 0;
    min-height: 34px;
    flex-direction: column;
    justify-content: center;
    padding: 3px 6px;
    border: 1px solid #e2e7ee;
    border-radius: 7px;
    background: #f9fbfd;
  }

  #ideas .opc-mobile-ideas-pulse strong {
    color: #253554;
    font-size: 11px;
    line-height: 16px;
  }

  #ideas .opc-mobile-ideas-pulse small {
    margin-top: 1px;
    overflow: hidden;
    color: #7d899c;
    font-size: 9px;
    line-height: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #ideas .feed-card {
    border: 1px solid #e2e7ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(3, 27, 78, 0.05);
  }

  #ideas .feed-card.is-selected {
    border-color: #85ace8;
    border-left-width: 1px;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.08);
  }

  #ideas .feed-card__open {
    position: relative;
    min-height: 92px;
    gap: 2px;
    padding: 7px 10px 6px;
  }

  #ideas .feed-card__footer {
    display: contents;
  }

  #ideas .feed-card__author {
    max-width: 42%;
    min-height: 28px;
    order: -3;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
  }

  #ideas .feed-card__meta {
    position: absolute;
    z-index: 1;
    top: 7px;
    right: 9px;
    max-width: 62%;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 3px 5px;
    font-size: 8px;
    line-height: 13px;
    white-space: nowrap;
  }

  #ideas .feed-card__letter {
    margin-left: 0;
  }

  #ideas .feed-card__category,
  #ideas .feed-card__letter,
  #ideas .feed-card__read {
    min-height: 18px;
    padding-inline: 5px;
    border-radius: 2px;
  }

  #ideas .feed-card__title {
    overflow: hidden;
    font-size: 13px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #ideas .feed-card__summary {
    font-size: 10px;
    line-height: 14px;
    -webkit-line-clamp: 1;
  }

  #ideas .feed-card__avatar {
    width: 22px;
    height: 28px;
    flex-basis: 22px;
  }

  #ideas .feed-card__metrics span:nth-child(2) {
    display: none;
  }

  #ideas .feed-card__author strong {
    font-size: 10px;
    line-height: 13px;
  }

  #ideas .feed-card__author small {
    display: block;
    font-size: 8px;
    line-height: 11px;
  }

  #ideas .feed-card__metrics {
    min-height: 14px;
    align-items: center;
    order: 3;
    gap: 10px;
    padding-top: 0;
    border-top: 0;
    font-size: 8px;
    line-height: 12px;
  }

  #ideas .feed-card__detail {
    padding: 0 14px 14px;
  }

  #ideas .feed-card__actions {
    grid-template-columns: minmax(0, 1fr) 72px 72px;
  }

  #ideas .opc-mobile-ideas-topics {
    display: block;
    margin-top: 7px;
    padding: 7px 8px 8px;
    border: 1px solid #e2e7ee;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(3, 27, 78, 0.05);
  }

  #ideas .opc-mobile-ideas-topics > header {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  #ideas .opc-mobile-ideas-topics h3 {
    margin: 0;
    color: #17233d;
    font-size: 15px;
    line-height: 20px;
  }

  #ideas .opc-mobile-ideas-topics > header button {
    min-width: 64px;
    min-height: 44px;
    border: 0;
    color: #667085;
    background: transparent;
    font-size: 10px;
  }

  #ideas .opc-mobile-ideas-topics__rail {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  #ideas .opc-mobile-ideas-topics__rail::-webkit-scrollbar {
    display: none;
  }

  #ideas .opc-mobile-ideas-topics__rail > button {
    display: grid;
    min-width: 108px;
    min-height: 44px;
    flex: 0 0 auto;
    align-content: center;
    gap: 1px;
    padding: 4px 8px;
    border: 1px solid #e2e7ee;
    border-radius: 7px;
    color: #0052d9;
    background: #fff;
    text-align: left;
  }

  #ideas .opc-mobile-ideas-topics__rail strong {
    font-size: 10px;
    line-height: 15px;
  }

  #ideas .opc-mobile-ideas-topics__rail small {
    color: #7d899c;
    font-size: 8px;
    line-height: 12px;
  }

  /* Community news — one photographic lead plus a vertical story list. */
  #news.tcwf-section {
    padding: 18px 0 28px;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  #news > .tcwf-section__inner {
    width: 100%;
    max-width: 680px;
    padding-inline: var(--opc-mobile-gutter, 16px);
  }

  #news .tcwf-section__header {
    align-items: flex-start;
    margin-bottom: 10px;
    text-align: left;
  }

  #news .tcwf-section__title {
    width: 100%;
    margin-inline: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
    text-align: left;
  }

  #news .tcwf-section__description {
    width: 100%;
    margin-top: 3px;
    color: #718096;
    font-size: 11px;
    line-height: 18px;
    text-align: left;
  }

  #news .opc-news-feature {
    overflow: hidden;
    border: 1px solid #e1e6ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(3, 27, 78, 0.07);
  }

  #news .opc-event-slide--static {
    display: block;
    min-height: 0;
  }

  #news .opc-event-slide--static > img {
    display: block;
    width: 100%;
    height: clamp(154px, 36vw, 190px);
    min-height: 0;
    object-fit: cover;
    object-position: center 48%;
  }

  #news .opc-event-slide--static > div {
    display: block;
    padding: 10px 12px 12px;
  }

  #news .opc-news-type {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding-inline: 8px;
    border: 1px solid #aac7f3;
    border-radius: 2px;
    color: #0052d9;
    background: #edf5ff;
    font-size: 10px;
    line-height: 20px;
  }

  #news .opc-event-slide--static h3 {
    margin-top: 7px;
    font-size: 15px;
    line-height: 22px;
  }

  #news .opc-event-slide--static p {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: #667085;
    font-size: 11px;
    line-height: 17px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #news .opc-event-slide--static time {
    display: block;
    margin-top: 6px;
    color: #8a97aa;
    font-size: 9px;
    line-height: 15px;
  }

  #news .opc-news-marquee {
    width: 100%;
    margin: 10px 0 0;
    overflow: visible;
  }

  #news .opc-news-marquee__viewport {
    overflow: visible;
  }

  #news .opc-news-marquee__track {
    display: block;
    width: 100%;
    animation: none;
    transform: none !important;
  }

  #news .opc-news-marquee .opc-news-grid {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 0;
  }

  #news .opc-news-marquee .opc-news-grid[aria-hidden="true"] {
    display: none;
  }

  #news .opc-news-marquee .opc-news-grid article {
    min-height: 0;
    padding: 10px 36px 10px 12px;
    border: 1px solid #e1e6ed;
    border-radius: 8px;
    background-color: #fff;
    background-image: url("./tencent-cloud-foundation/ui-icons/arrow-right.svg");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    box-shadow: 0 3px 12px rgba(3, 27, 78, 0.05);
  }

  #news .opc-news-marquee .opc-news-grid article:nth-child(3) {
    order: 1;
  }

  #news .opc-news-marquee .opc-news-grid article:nth-child(4) {
    order: 2;
  }

  #news .opc-news-marquee .opc-news-grid article:nth-child(1) {
    order: 3;
  }

  #news .opc-news-marquee .opc-news-grid article:nth-child(2) {
    display: none;
  }

  #news .opc-news-grid span {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    padding-inline: 7px;
    border-radius: 2px;
    background: #edf5ff;
    font-size: 9px;
    line-height: 18px;
  }

  #news .opc-news-grid h3 {
    min-height: 0;
    margin-top: 5px;
    font-size: 13px;
    line-height: 19px;
  }

  #news .opc-news-grid p {
    display: -webkit-box;
    min-height: 0;
    margin-top: 3px;
    overflow: hidden;
    color: #667085;
    font-size: 10px;
    line-height: 15px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #news .opc-news-grid time {
    margin-top: 5px;
    font-size: 9px;
    line-height: 14px;
  }

  #news > .tcwf-section__inner > .opc-section-more {
    margin-top: 10px;
  }

  /* Learning — a standalone dual-portal page with a two-column tool grid. */
  .opc-page[data-mobile-view="learning"] #resources {
    min-height: calc(100dvh - var(--opc-mobile-header, 56px));
    padding: 16px 0 28px;
    border: 0;
    background: #f5f7fa;
    box-shadow: none;
  }

  .opc-page[data-mobile-view="learning"] #resources > .tcwf-section__inner {
    width: 100%;
    max-width: 760px;
    padding-inline: var(--opc-mobile-gutter, 16px);
  }

  .opc-page[data-mobile-view="learning"] #resources .opc-v2-resources-header,
  .opc-page[data-mobile-view="learning"] #resources > .tcwf-section__inner > .tcwf-section__header,
  .opc-page[data-mobile-view="learning"] #resources .opc-mobile-resource-tabs,
  .opc-page[data-mobile-view="learning"] #resources .opc-expert-library,
  .opc-page[data-mobile-view="learning"] #resources > .tcwf-section__inner > .opc-section-more,
  .opc-page[data-mobile-view="learning"] #resources #activities,
  .opc-page[data-mobile-view="learning"] #resources .opc-resource-mobile {
    display: none !important;
  }

  .opc-page[data-mobile-view="learning"] #learning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 0 10px;
    text-align: center;
  }

  .opc-page[data-mobile-view="learning"] #learning h3 {
    margin-top: 2px;
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
  }

  .opc-page[data-mobile-view="learning"] #learning p {
    display: block;
    max-width: 34em;
    margin-top: 3px;
    color: #667085;
    font-size: 11px;
    line-height: 17px;
  }

  .opc-page[data-mobile-view="learning"] #learning > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: 0;
    color: #27364f;
    font-size: 11px;
    text-decoration: none;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools.opc-course-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(3, 27, 78, 0.06);
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--portal {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--portal .opc-resource-card__media {
    position: relative;
    height: clamp(90px, 22vw, 116px);
    flex: 0 0 auto;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--portal .opc-resource-card__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--portal .opc-resource-card__media h3 {
    position: absolute;
    inset: auto 0 0;
    margin: 0;
    padding: 7px 9px;
    color: #fff;
    background: rgba(8, 23, 49, 0.78);
    font-size: 14px;
    line-height: 20px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--portal .opc-resource-card__body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 8px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-label {
    display: block;
    color: #0052d9;
    font-size: 9px;
    line-height: 14px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card__body > h4,
  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card__body > p {
    display: block;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card__body > h4 {
    margin-top: 4px;
    color: #1f2a44;
    font-size: 12px;
    line-height: 17px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card__body > p {
    margin-top: 2px;
    color: #667085;
    font-size: 9px;
    line-height: 14px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-portal-list {
    display: grid;
    margin-top: 5px;
    border-top: 1px solid #e5e8ed;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-portal-list button,
  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-portal-list button:nth-child(n + 2) {
    display: grid;
    min-height: 44px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #e5e8ed;
    background: #fff;
    text-align: left;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-portal-list button span {
    display: grid;
    gap: 2px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-portal-list strong {
    color: #253554;
    font-size: 10px;
    line-height: 14px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-portal-list small {
    color: #7d899c;
    font-size: 8px;
    line-height: 12px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-portal-list em {
    display: inline-flex;
    width: max-content;
    min-height: 44px;
    align-items: center;
    padding-inline: 6px;
    border: 1px solid #9ebfec;
    color: #0052d9;
    font-size: 9px;
    font-style: normal;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--portal .opc-resource-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: auto;
    padding-top: 3px;
    font-size: 10px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--more {
    grid-column: 1 / -1;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--more .opc-resource-card__body {
    display: block;
    padding: 9px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--more h4 {
    display: block;
    margin: 0;
    font-size: 16px;
    line-height: 22px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--more .opc-resource-card__body > p {
    display: block;
    margin-top: 1px;
    font-size: 9px;
    line-height: 14px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-tool-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 6px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-tool-list a {
    display: grid;
    min-height: 70px;
    grid-template-columns: 30px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: 7px;
    padding: 7px;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    color: #253554;
    background: #fff;
    text-decoration: none;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-tool-list img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-tool-list span {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-tool-list strong {
    font-size: 11px;
    line-height: 16px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-tool-list small {
    display: block;
    color: #0052d9;
    font-size: 8px;
    line-height: 12px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-tool-list p,
  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-tool-list em {
    display: none;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--more > .opc-resource-card__body > .opc-resource-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: 2px;
    color: #0052d9;
    font-size: 10px;
  }

  /* Summit — image-led hero, then role-based join cards. */
  #summit.opc-summit > img,
  #summit.opc-summit > .opc-summit__overlay {
    height: clamp(270px, 64vw, 300px);
  }

  #summit.opc-summit > img {
    object-position: center 42%;
  }

  #summit.opc-summit > .opc-summit__overlay {
    background: rgba(3, 15, 38, 0.7);
  }

  #summit .opc-summit__inner {
    min-height: clamp(270px, 64vw, 300px);
    align-items: end;
    padding: 20px var(--opc-mobile-gutter, 16px) 16px;
  }

  #summit .opc-summit__copy {
    text-align: left;
  }

  #summit .opc-summit__copy h2 {
    max-width: 12em;
    margin-top: 7px;
    font-size: 23px;
    line-height: 30px;
  }

  #summit .opc-summit__meta {
    margin-top: 4px;
    font-size: 11px;
    line-height: 17px;
  }

  #summit .tcwf-solution-cta__actions {
    gap: 8px;
    margin-top: 10px;
  }

  #summit .tcwf-action {
    min-height: 44px;
    border-radius: 2px;
    font-size: 11px;
  }

  #summit .opc-mobile-summit-details {
    display: flex;
    max-width: 680px;
    flex-direction: column;
    padding: 0 var(--opc-mobile-gutter, 16px) 22px;
  }

  #summit .opc-mobile-summit-value {
    display: none;
  }

  #summit .opc-mobile-summit-join {
    order: 1;
    padding-top: 16px;
  }

  #summit .opc-mobile-summit-join > header {
    color: #17233d;
    text-align: center;
  }

  #summit .opc-mobile-summit-block[aria-labelledby="mobile-summit-agenda-title"] {
    display: none;
  }

  #summit .opc-mobile-summit-block[aria-labelledby="mobile-summit-opportunity-title"] {
    display: none;
  }

  #summit .opc-mobile-summit-block[aria-labelledby="mobile-summit-gallery-title"] {
    display: none;
  }

  #summit .opc-mobile-summit-block > header h3 {
    margin-top: 2px;
    color: #17233d;
    font-size: 18px;
    line-height: 25px;
  }

  #summit .opc-mobile-summit-join > div {
    gap: 7px;
    margin-top: 10px;
  }

  #summit .opc-mobile-summit-join a {
    min-height: 108px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 36px 10px 12px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("./tencent-cloud-foundation/ui-icons/arrow-right.svg");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    box-shadow: 0 3px 12px rgba(3, 27, 78, 0.05);
  }

  #summit .opc-mobile-summit-join img {
    width: 44px;
    height: 44px;
  }

  #summit .opc-mobile-summit-join strong {
    font-size: 14px;
    line-height: 20px;
  }

  #summit .opc-mobile-summit-join small {
    margin-top: 1px;
    font-size: 10px;
    line-height: 15px;
  }

  #summit .opc-mobile-summit-join ul {
    display: grid;
    gap: 1px;
    margin: 4px 0 0;
    padding-left: 13px;
    color: #667085;
    font-size: 9px;
    line-height: 13px;
  }
}

@media (max-width: 380px) {
  .opc-page[data-mobile-view="learning"] #resource-tools.opc-course-grid {
    gap: 6px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--portal .opc-resource-card__body {
    padding: 6px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-card--portal {
    min-height: 0;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-tool-list a {
    min-height: 66px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .opc-page[data-mobile-view="learning"] #resource-tools .opc-resource-tool-list img {
    width: 28px;
    height: 28px;
  }

  #summit .opc-summit__copy h2 {
    font-size: 22px;
    line-height: 29px;
  }
}
