.topics-intro { padding: 48px 0 42px; background: #fff; border-bottom: 1px solid var(--store-line); }
.topics-intro > div { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.topics-intro .eyebrow { margin: 0 0 8px; font-weight: 900; }
.topics-intro h1 { margin: 0; font-size: 34px; }
.topics-intro > div > div:first-child > p:last-child { max-width: 690px; margin: 13px 0 0; color: var(--store-muted); font-size: 13px; line-height: 1.75; }
.topics-intro-stat { width: 130px; padding-left: 20px; border-left: 3px solid var(--store-coral); }
.topics-intro-stat strong,.topics-intro-stat span { display: block; }
.topics-intro-stat strong { font-size: 30px; line-height: 1; }
.topics-intro-stat span { margin-top: 6px; color: var(--store-muted); font-size: 9px; }
.topics-content { padding-top: 26px; padding-bottom: 68px; }
.topics-section-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topics-section-head > div > span { display: block; margin-bottom: 4px; color: var(--store-green); font-size: 9px; font-weight: 900; }
.topics-section-head h2 { margin: 0; font-size: 21px; }
.topics-section-head p { margin: 5px 0 0; color: var(--store-muted); font-size: 10px; }
.topics-section-head > a { display: flex; align-items: center; gap: 3px; color: var(--store-green-dark); font-size: 10px; font-weight: 800; }
.topics-section-head svg { width: 15px; height: 15px; }
.topics-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.topic-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--store-line); border-radius: 7px; }
.topic-card:hover { border-color: #8fc8ba; box-shadow: 0 9px 24px rgba(19,78,63,.07); }
.topic-card.is-featured { grid-column: span 2; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); }
.topic-card-cover { position: relative; display: block; min-height: 215px; overflow: hidden; background: #dfe7e4; }
.topic-card.is-featured .topic-card-cover { min-height: 350px; }
.topic-card-cover img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .25s ease; }
.topic-card:hover .topic-card-cover img { transform: scale(1.02); }
.topic-card-cover > span { position: absolute; top: 13px; left: 13px; padding: 5px 8px; border-radius: 4px; background: rgba(20,32,29,.84); color: #fff; font-size: 8px; font-weight: 800; }
.topic-card.is-featured .topic-card-cover > span { background: var(--store-coral); }
.topic-card-body { min-width: 0; display: flex; flex-direction: column; padding: 18px; }
.topic-card.is-featured .topic-card-body { justify-content: center; padding: 25px; }
.topic-card-meta { display: flex; align-items: center; justify-content: space-between; color: var(--store-green-dark); font-size: 9px; font-weight: 800; }
.topic-card-meta small { color: var(--store-muted); font-size: 8px; font-weight: 400; }
.topic-card h2 { margin: 10px 0 8px; font-size: 18px; line-height: 1.4; }
.topic-card.is-featured h2 { font-size: 24px; }
.topic-card-body > p { display: -webkit-box; margin: 0 0 18px; overflow: hidden; color: var(--store-muted); font-size: 10px; line-height: 1.7; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.topic-card-footer { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--store-line); }
.topic-card-footer > a { display: flex; align-items: center; flex: none; color: var(--store-green-dark); font-size: 9px; font-weight: 800; }
.topic-card-footer > a svg { width: 14px; height: 14px; }
.topic-app-preview { min-width: 0; display: flex; align-items: center; padding-left: 4px; }
.topic-app-preview img { width: 30px; height: 30px; margin-left: -4px; object-fit: cover; border: 2px solid #fff; border-radius: 50%; }
.topic-app-preview span { color: var(--store-muted); font-size: 8px; }
.topics-pagination { margin-top: 30px; }

.topic-detail-hero { position: relative; isolation: isolate; min-height: 370px; display: flex; align-items: flex-end; overflow: hidden; background: #17211f; color: #fff; }
.topic-detail-hero > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topic-detail-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(10,20,17,.74); }
.topic-detail-hero > div { padding-top: 42px; padding-bottom: 43px; }
.topic-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 38px; color: #d8e3e0; font-size: 10px; font-weight: 800; }
.topic-back svg { width: 15px; height: 15px; transform: rotate(180deg); }
.topic-detail-hero .eyebrow { margin: 0 0 7px; color: #71d9ba; font-weight: 900; }
.topic-detail-hero h1 { max-width: 780px; margin: 0; font-size: 36px; line-height: 1.28; }
.topic-detail-hero > div > p:nth-of-type(2) { max-width: 700px; margin: 12px 0 16px; color: #d5dfdc; font-size: 13px; line-height: 1.7; }
.topic-detail-hero > div > div { display: flex; gap: 8px; }
.topic-detail-hero > div > div span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; font-size: 9px; font-weight: 700; }
.topic-detail-content { padding-top: 23px; padding-bottom: 68px; }
.topic-overview { margin-bottom: 18px; padding: 23px 25px; background: #fff; border: 1px solid var(--store-line); border-left: 4px solid var(--store-coral); border-radius: 7px; }
.topic-overview > span { color: var(--store-coral); font-size: 8px; font-weight: 900; }
.topic-overview h2 { margin: 5px 0 10px; font-size: 19px; }
.topic-overview > div { max-width: 920px; color: var(--store-muted); font-size: 12px; line-height: 1.85; }
.topic-overview p { margin: 0; }
.topic-platform-groups { display: grid; gap: 24px; }
.topic-platform-group > header { min-height: 60px; display: flex; align-items: center; gap: 11px; margin-bottom: 10px; padding: 9px 14px; background: #fff; border: 1px solid var(--store-line); border-radius: 7px; }
.topic-platform-group > header > span { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 7px; background: #e8f5f1; color: var(--store-green-dark); }
.topic-platform-group > header > span svg { width: 21px; height: 21px; }
.topic-platform-group > header h2 { margin: 0; font-size: 16px; }
.topic-platform-group > header p { margin: 4px 0 0; color: var(--store-muted); font-size: 8px; }
.topic-app-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.topic-app-card { position: relative; min-width: 0; min-height: 185px; overflow: hidden; background: #fff; border: 1px solid var(--store-line); border-radius: 7px; }
.topic-app-card:hover { border-color: #8fc8ba; box-shadow: 0 7px 20px rgba(19,78,63,.06); }
.topic-app-number { position: absolute; top: 10px; right: 12px; color: #dbe3e0; font-size: 22px; font-weight: 900; }
.topic-app-main { min-width: 0; height: 100%; display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: start; gap: 13px; padding: 18px 48px 18px 16px; }
.topic-app-main > img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.topic-app-main > div { min-width: 0; }
.topic-app-main span { color: var(--store-coral); font-size: 8px; font-weight: 900; }
.topic-app-main h2 { margin: 5px 0 7px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.topic-app-main p { display: -webkit-box; margin: 0 0 10px; overflow: hidden; color: var(--store-muted); font-size: 9px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.topic-app-main small { color: var(--store-green-dark); font-size: 8px; font-weight: 700; }
.topic-app-download { position: absolute; right: 12px; bottom: 14px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #add8cd; border-radius: 50%; color: var(--store-green); }
.topic-app-download:hover { background: var(--store-green); color: #fff; }
.topic-app-download svg { width: 15px; height: 15px; }

@media (max-width: 960px) {
  .topics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .topic-card.is-featured { grid-column: 1/-1; }
  .topic-app-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .topics-intro { padding: 31px 0 28px; }
  .topics-intro > div { display: block; }
  .topics-intro h1 { font-size: 27px; }
  .topics-intro > div > div:first-child > p:last-child { font-size: 11px; }
  .topics-intro-stat { width: auto; display: flex; align-items: baseline; gap: 7px; margin-top: 20px; padding: 11px 0 0; border-top: 1px solid var(--store-line); border-left: 0; }
  .topics-intro-stat strong { font-size: 23px; }
  .topics-intro-stat span { margin: 0; }
  .topics-content { width: 100%; padding: 18px 14px 46px; }
  .topics-section-head { min-height: 60px; }
  .topics-section-head h2 { font-size: 18px; }
  .topics-section-head p { display: none; }
  .topics-grid { grid-template-columns: 1fr; gap: 10px; }
  .topic-card.is-featured { display: block; }
  .topic-card-cover,.topic-card.is-featured .topic-card-cover { min-height: 205px; }
  .topic-card-body,.topic-card.is-featured .topic-card-body { padding: 16px; }
  .topic-card.is-featured h2 { font-size: 20px; }
  .topic-detail-hero { min-height: 325px; }
  .topic-detail-hero > div { padding-top: 28px; padding-bottom: 31px; }
  .topic-back { margin-bottom: 34px; }
  .topic-detail-hero h1 { font-size: 27px; }
  .topic-detail-hero > div > p:nth-of-type(2) { font-size: 11px; }
  .topic-detail-content { width: 100%; padding: 17px 14px 46px; }
  .topic-overview { padding: 18px; }
  .topic-overview > div { font-size: 11px; }
  .topic-platform-groups { gap: 19px; }
  .topic-app-grid { grid-template-columns: 1fr; gap: 8px; }
  .topic-app-card { min-height: 150px; }
  .topic-app-main { grid-template-columns: 58px minmax(0,1fr); padding: 14px 44px 14px 13px; }
  .topic-app-main > img { width: 58px; height: 58px; }
  .topic-app-main p { -webkit-line-clamp: 2; }
}

@media (prefers-reduced-motion: reduce) { .topic-card-cover img { transition: none; } }
