/* 纸飞机官网 · IM 通讯风格模板（imx-） */
:root {
  --imx-bg: #e9edf2;
  --imx-panel: #ffffff;
  --imx-bar: #f4f6f8;
  --imx-ink: #111827;
  --imx-muted: #6b7280;
  --imx-soft: #9ca3af;
  --imx-line: #e5e7eb;
  --imx-blue: #0b7fd1;
  --imx-blue-bright: #34b7f1;
  --imx-bubble-in: #ffffff;
  --imx-bubble-out-a: #34b7f1;
  --imx-bubble-out-b: #0b7fd1;
  --imx-online: #22c55e;
  --imx-radius: 18px;
  --imx-radius-sm: 12px;
  --imx-max: 1080px;
  --imx-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --imx-shadow: 0 4px 24px rgba(17, 24, 39, 0.07);
  --imx-shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--imx-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--imx-ink);
  background: var(--imx-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--imx-blue);
}

.imx-wrap {
  max-width: var(--imx-max);
  margin: 0 auto;
  padding: 0 18px;
}

.imx-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--imx-ink);
  color: #fff;
  border-radius: var(--imx-radius-sm);
}

.imx-skip:focus {
  left: 10px;
  top: 10px;
}

/* —— 顶栏（会话列表顶条风格） —— */
.imx-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--imx-panel);
  border-bottom: 1px solid var(--imx-line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.imx-topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.imx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.imx-brand__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--imx-online);
  background: var(--imx-bar);
}

.imx-brand__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imx-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.imx-brand__name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.imx-brand__sub {
  font-size: 11px;
  color: var(--imx-muted);
  font-weight: 600;
}

.imx-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--imx-bar);
  border-radius: 999px;
  border: 1px solid var(--imx-line);
}

.imx-tabs__link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--imx-muted);
}

.imx-tabs__link:hover {
  color: var(--imx-ink);
  background: rgba(255, 255, 255, 0.85);
}

.imx-topbar__side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.imx-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--imx-line);
  background: var(--imx-panel);
  color: var(--imx-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.imx-chip:hover {
  border-color: var(--imx-blue);
  color: var(--imx-blue);
}

.imx-chip--solid {
  border: none;
  background: linear-gradient(135deg, var(--imx-bubble-out-a), var(--imx-bubble-out-b));
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 127, 209, 0.28);
}

.imx-chip--solid:hover {
  color: #fff;
  filter: brightness(1.05);
}

.imx-iconbtn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--imx-radius-sm);
  border: 1px solid var(--imx-line);
  background: var(--imx-panel);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.imx-iconbtn__lines {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--imx-ink);
  border-radius: 1px;
}

.imx-iconbtn__lines::before,
.imx-iconbtn__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--imx-ink);
  border-radius: 1px;
}

.imx-iconbtn__lines::before {
  top: -6px;
}

.imx-iconbtn__lines::after {
  top: 6px;
}

/* —— 按钮 —— */
.imx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--imx-line);
  background: var(--imx-panel);
  color: var(--imx-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.imx-btn:hover {
  border-color: var(--imx-blue);
  color: var(--imx-blue);
}

.imx-btn--primary {
  border: none;
  background: linear-gradient(135deg, var(--imx-bubble-out-a), var(--imx-bubble-out-b));
  color: #fff;
  box-shadow: 0 8px 22px rgba(11, 127, 209, 0.25);
}

.imx-btn--primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.imx-btn--xs {
  padding: 8px 16px;
  font-size: 13px;
}

.imx-btn--ghost {
  background: transparent;
}

.imx-btn--block {
  width: 100%;
}

.imx-btn--disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* —— 首页英雄区 —— */
.imx-main {
  display: block;
}

.imx-hero {
  padding: 36px 0 28px;
}

.imx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.imx-h1 {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.imx-h1--sm {
  font-size: clamp(22px, 3.5vw, 30px);
}

.imx-lead {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--imx-ink);
  line-height: 1.75;
}

.imx-lead--muted {
  color: var(--imx-muted);
  font-size: 14px;
}

.imx-hero__cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* —— 聊天窗口示意 —— */
.imx-window {
  border-radius: var(--imx-radius);
  background: var(--imx-panel);
  box-shadow: var(--imx-shadow-lg);
  border: 1px solid var(--imx-line);
  overflow: hidden;
}

.imx-window__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--imx-bar);
  border-bottom: 1px solid var(--imx-line);
}

.imx-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.imx-window__dot--r {
  background: #ff5f57;
}

.imx-window__dot--y {
  background: #febc2e;
}

.imx-window__dot--g {
  background: #28c840;
}

.imx-window__cap {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--imx-muted);
}

.imx-window__body {
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, #eef1f5 0%, #e4e9ef 100%);
  max-height: 420px;
  overflow-y: auto;
}

.imx-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.imx-msg--in {
  justify-content: flex-start;
}

.imx-msg--out {
  justify-content: flex-end;
}

.imx-msg__ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #c7d2fe, #93c5fd);
  border: 2px solid #fff;
  box-shadow: var(--imx-shadow);
}

.imx-msg--out .imx-msg__bubble {
  background: linear-gradient(135deg, var(--imx-bubble-out-a), var(--imx-bubble-out-b));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.imx-msg--in .imx-msg__bubble {
  background: var(--imx-bubble-in);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom-left-radius: 4px;
  box-shadow: var(--imx-shadow);
}

.imx-msg__bubble {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 16px;
}

.imx-msg__txt {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.imx-msg__txt strong {
  font-weight: 800;
}

.imx-window__hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--imx-soft);
  text-align: center;
}

/* —— 通用区块 —— */
.imx-section {
  padding: 44px 0 52px;
}

.imx-section--alt {
  background: var(--imx-panel);
  border-top: 1px solid var(--imx-line);
  border-bottom: 1px solid var(--imx-line);
}

.imx-section--blog {
  padding-bottom: 72px;
}

.imx-h2 {
  margin: 0;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.imx-h2--sm {
  font-size: 1.15rem;
}

.imx-prose {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--imx-muted);
  line-height: 1.75;
}

.imx-prose--center {
  text-align: center;
  max-width: 52em;
  margin-left: auto;
  margin-right: auto;
}

.imx-prose a {
  color: var(--imx-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.imx-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.imx-card {
  padding: 20px 18px;
  border-radius: var(--imx-radius);
  background: var(--imx-panel);
  border: 1px solid var(--imx-line);
  box-shadow: var(--imx-shadow);
}

.imx-card__t {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.imx-card__d {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--imx-muted);
  line-height: 1.6;
}

.imx-shots {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.imx-shot {
  margin: 0;
  border-radius: var(--imx-radius);
  overflow: hidden;
  border: 1px solid var(--imx-line);
  background: var(--imx-bg);
  box-shadow: var(--imx-shadow);
}

.imx-shot figcaption {
  padding: 10px 14px 14px;
  font-size: 13px;
  color: var(--imx-muted);
  background: var(--imx-panel);
}

.imx-mosaic {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.imx-tile {
  padding: 16px 14px;
  border-radius: var(--imx-radius-sm);
  background: var(--imx-panel);
  border: 1px solid var(--imx-line);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.imx-tile:hover {
  border-color: rgba(11, 127, 209, 0.35);
  box-shadow: var(--imx-shadow);
}

.imx-tile__gif {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.imx-tile__t {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.imx-tile__d {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--imx-muted);
  line-height: 1.55;
}

/* —— 博客 feed —— */
.imx-bloghead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.imx-bloghead__more {
  font-size: 14px;
  font-weight: 800;
  color: var(--imx-blue);
}

.imx-feed {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.imx-feed__item {
  border-radius: var(--imx-radius);
  overflow: hidden;
  border: 1px solid var(--imx-line);
  background: var(--imx-panel);
  display: flex;
  flex-direction: column;
  box-shadow: var(--imx-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.imx-feed__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--imx-shadow-lg);
}

.imx-feed__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--imx-bar);
  overflow: hidden;
}

.imx-feed__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imx-feed__bd {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.imx-feed__t {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.imx-feed__t a:hover {
  color: var(--imx-blue);
}

.imx-feed__time {
  font-size: 12px;
  color: var(--imx-soft);
}

.imx-feed__intro {
  margin: 0;
  font-size: 13px;
  color: var(--imx-muted);
  line-height: 1.55;
  flex: 1;
}

.imx-feed--compact {
  margin-top: 16px;
}

.imx-feed__item--mini .imx-feed__intro {
  display: none;
}

.imx-feed__item--mini .imx-feed__bd {
  padding: 10px 12px 12px;
}

/* —— 页头 / 下载 / 文章纸 —— */
.imx-phead {
  padding: 32px 0 24px;
  background: linear-gradient(180deg, var(--imx-panel) 0%, var(--imx-bg) 100%);
  border-bottom: 1px solid var(--imx-line);
}

.imx-phead__inner {
  max-width: 720px;
}

.imx-phead__chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.imx-phead__jump {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.imx-phead__jump a {
  color: var(--imx-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.imx-plats {
  padding: 32px 0 16px;
}

.imx-plats__grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.imx-plat {
  border-radius: var(--imx-radius);
  overflow: hidden;
  border: 1px solid var(--imx-line);
  background: var(--imx-panel);
  box-shadow: var(--imx-shadow);
  display: flex;
  flex-direction: column;
}

.imx-plat__media img {
  width: 100%;
}

.imx-plat__body {
  padding: 16px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.imx-plat__t {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.imx-plat__d {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--imx-muted);
  line-height: 1.65;
  flex: 1;
}

.imx-plat__act {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.imx-article {
  padding: 24px 0 56px;
}

.imx-sheet {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--imx-radius);
  background: var(--imx-panel);
  border: 1px solid var(--imx-line);
  box-shadow: var(--imx-shadow);
  overflow: hidden;
}

.imx-sheet--post {
  max-width: none;
}

.imx-sheet__body {
  padding: 26px 22px 32px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--imx-ink);
}

.imx-sheet__body a {
  color: var(--imx-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.imx-sheet__body h2,
.imx-sheet__body h3 {
  margin: 22px 0 10px;
  font-weight: 800;
}

.imx-sheet__body p,
.imx-sheet__body ul,
.imx-sheet__body ol {
  margin: 10px 0;
}

.imx-sheet__body ul,
.imx-sheet__body ol {
  padding-left: 1.25em;
}

.imx-faq {
  border: 1px solid var(--imx-line);
  border-radius: var(--imx-radius-sm);
  background: var(--imx-bar);
  margin-bottom: 10px;
}

.imx-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  color: var(--imx-ink);
}

.imx-faq__plus {
  color: var(--imx-soft);
  font-size: 18px;
}

.imx-faq__a {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--imx-muted);
  line-height: 1.65;
}

/* —— 博客入口磁贴 —— */
.imx-tiles {
  padding: 20px 0 64px;
}

.imx-tiles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.imx-tilelink {
  display: block;
  padding: 20px 18px;
  border-radius: var(--imx-radius);
  background: var(--imx-panel);
  border: 1px solid var(--imx-line);
  box-shadow: var(--imx-shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.imx-tilelink:hover {
  border-color: var(--imx-blue);
  transform: translateY(-1px);
}

.imx-tilelink__emoji {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.imx-tilelink__t {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.imx-tilelink__d {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--imx-muted);
  line-height: 1.55;
}

/* —— 列表 —— */
.imx-list {
  padding: 8px 0 64px;
}

.imx-list__stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.imx-rowcard {
  display: flex;
  gap: 16px;
  padding: 14px;
  border-radius: var(--imx-radius);
  background: var(--imx-panel);
  border: 1px solid var(--imx-line);
  box-shadow: var(--imx-shadow);
  align-items: stretch;
}

.imx-rowcard__thumb {
  width: 200px;
  min-width: 200px;
  border-radius: var(--imx-radius-sm);
  overflow: hidden;
  background: var(--imx-bar);
  align-self: stretch;
}

.imx-rowcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 130px;
}

.imx-rowcard__t {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.imx-rowcard__t a:hover {
  color: var(--imx-blue);
}

.imx-rowcard__meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--imx-soft);
}

.imx-rowcard__intro {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--imx-muted);
  line-height: 1.6;
}

.imx-pager {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.imx-pager a,
.imx-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--imx-line);
  background: var(--imx-panel);
  font-size: 14px;
  font-weight: 600;
  color: var(--imx-muted);
}

.imx-pager a:hover {
  border-color: var(--imx-blue);
  color: var(--imx-blue);
}

.imx-pager .current,
.imx-pager .active {
  border-color: var(--imx-blue);
  background: rgba(11, 127, 209, 0.1);
  color: var(--imx-blue);
}

/* —— 文章底部 —— */
.imx-related {
  padding: 0 0 72px;
}

.imx-related__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 36px;
}

.imx-canonical {
  margin-top: 24px;
  font-size: 13px;
  color: var(--imx-soft);
  word-break: break-all;
}

.imx-canonical a {
  color: var(--imx-blue);
  text-decoration: underline;
}

/* —— 页脚 —— */
.imx-foot {
  background: #1c2128;
  color: #adbac7;
  padding: 36px 0 24px;
  font-size: 14px;
}

.imx-foot__bubble {
  border-radius: var(--imx-radius);
  padding: 18px 18px;
  margin-bottom: 20px;
}

.imx-foot__bubble--sys {
  background: #2d333b;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.imx-foot__p {
  margin: 0;
  line-height: 1.7;
  font-size: 13px;
}

.imx-foot__p strong {
  color: #e6edf3;
}

.imx-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.imx-foot__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #768390;
  margin-bottom: 10px;
}

.imx-foot__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.imx-foot .imx-chip {
  background: #2d333b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e6edf3;
}

.imx-foot .imx-chip:hover {
  border-color: var(--imx-blue-bright);
  color: #fff;
}

.imx-foot .imx-chip--solid:hover {
  color: #fff;
}

.imx-foot__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}

.imx-foot__links a {
  color: #d1d7e0;
}

.imx-foot__links a:hover {
  color: #fff;
}

.imx-foot__copy {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #768390;
  line-height: 1.6;
}

/* —— 404 —— */
.imx-empty {
  padding: 80px 0 100px;
  text-align: center;
}

.imx-empty__box {
  max-width: 480px;
  margin: 0 auto;
}

.imx-empty__bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.imx-empty__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--imx-soft);
}

.imx-empty__line {
  width: 48px;
  height: 8px;
  border-radius: 4px;
  background: var(--imx-line);
}

.imx-empty__code {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--imx-blue);
}

.imx-empty__cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 880px) {
  .imx-iconbtn {
    display: inline-flex;
  }

  .imx-tabs {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--imx-radius-sm);
    z-index: 60;
    box-shadow: var(--imx-shadow-lg);
  }

  .imx-tabs[aria-hidden="true"] {
    display: none;
  }

  .imx-tabs__link {
    border-radius: var(--imx-radius-sm);
    text-align: center;
  }

  .imx-topbar {
    position: relative;
  }

  .imx-topbar__row {
    flex-wrap: wrap;
  }

  .imx-hero__grid {
    grid-template-columns: 1fr;
  }

  .imx-cards {
    grid-template-columns: 1fr;
  }

  .imx-shots {
    grid-template-columns: 1fr;
  }

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

  .imx-feed {
    grid-template-columns: 1fr;
  }

  .imx-plats__grid {
    grid-template-columns: 1fr;
  }

  .imx-tiles__grid {
    grid-template-columns: 1fr;
  }

  .imx-rowcard {
    flex-direction: column;
  }

  .imx-rowcard__thumb {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
  }

  .imx-rowcard__thumb img {
    min-height: 0;
  }

  .imx-related__nav {
    grid-template-columns: 1fr;
  }

  .imx-foot__row {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .imx-mosaic {
    grid-template-columns: 1fr;
  }
}
