:root {
  color-scheme: light;
  font: 14px/1.4286 "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fff;
  --line: #ddd;
  --muted: #666;
  --link: #286090;
  --blue: #337ab7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body, h1, h2, h3, p { margin: 0; }
input { font: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #204d74; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.workspace { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; align-self: start; min-height: 100vh; border-right: 1px solid #e7e7e7; background: #f8f8f8; }
.brand { display: flex; min-height: 58px; align-items: center; padding: 0 20px; color: #444; font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.brand:hover { color: #222; text-decoration: none; }
.section-nav { display: grid; gap: 2px; padding: 8px 12px; }
.section-nav a { display: block; padding: 9px 12px; border: 1px solid transparent; border-radius: 4px; color: #555; }
.section-nav a:hover { background: #eee; text-decoration: none; }
.section-nav a[aria-current] { border-color: #2e6da4; background: var(--blue); color: #fff; }
main { min-width: 0; padding: 30px clamp(18px, 4vw, 45px) 45px; }

h1, h2, h3 { font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-size: 36px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.page-header { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.muted { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.panel { border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / 5%); }
.button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  text-align: center;
}
.button:hover { background: #e6e6e6; border-color: #adadad; color: #333; text-decoration: none; }
.button.primary { border-color: #2e6da4; background: var(--blue); color: #fff; }
.button.primary:hover { background: #286090; border-color: #204d74; }

.home-flow { width: min(100%, 990px); margin-inline: auto; }
.home-actions { display: flex; justify-content: center; margin-bottom: 24px; }
.feed-section { margin-top: 24px; }
.feed-section h2 { margin-bottom: 12px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.empty-note { color: var(--muted); font-size: 13px; }
.home-flow > .empty-note { text-align: center; }
.home-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.news-card { min-width: 0; overflow: hidden; scroll-margin-top: 1rem; }
.news-lead { grid-column: 1 / -1; background: #f5f5f5; }
.news-lead.with-image .news-card-content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.news-card-content { display: block; color: inherit; }
a.news-card-content:hover { background: #f8fbfd; color: inherit; text-decoration: none; }
a.news-card-content:hover h3 { color: var(--link); }
a.news-card-content:focus-visible { outline-offset: -3px; }
.news-card:target { border-color: #79a9d0; box-shadow: 0 0 0 2px #e2effa; }
.news-image, .article-image { width: 100%; height: auto; }
.news-lead .news-image { align-self: start; }
.news-body { padding: 15px; }
.news-body h3 { margin: 5px 0 8px; }
.news-lead .news-body { align-self: center; padding: clamp(18px, 3.2vw, 35px); }
.news-lead .news-body h3 { font-size: clamp(22px, 3vw, 30px); }
.home-news .news-card:not(.news-lead) p.description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.news-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; overflow-wrap: anywhere; }
.related-app > .app-tile { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.news-column { width: min(100%, 720px); margin-inline: auto; }
.news-list { display: grid; gap: 16px; }
.news-article header .muted { display: block; margin-top: 7px; }
.article-caption { margin-top: 12px; color: var(--muted); overflow-wrap: anywhere; }
.article-image { margin-bottom: 18px; border-radius: 4px; }
.article-content { line-height: 1.7; }
.featured { padding-top: 18px; border-top: 1px solid #eee; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.apps-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.app-link { display: block; padding: 14px; color: inherit; }
.app-link:hover { color: inherit; background: #f8fbfd; text-decoration: none; }
.app-link:hover h3 { color: var(--link); }
.app-heading { display: flex; min-width: 0; align-items: center; gap: 12px; }
.app-copy { min-width: 0; }
.app-copy .muted { margin-top: 4px; }
.app-icon, .detail-icon { flex: none; object-fit: cover; border: 1px solid #eee; background: #f5f5f5; }
.app-icon { border-radius: 9px; }
.detail-icon { border-radius: 16px; }
.open-app { margin-left: auto; padding: 4px 10px; border-radius: 4px; background: var(--blue); color: #fff; flex: none; font-size: 12px; font-weight: 600; }
.app-link:hover .open-app { background: #286090; }
.app-summary { margin-top: 7px; color: var(--muted); overflow-wrap: anywhere; }
.app-preview { width: auto; height: auto; max-height: 220px; margin-top: 12px; border-radius: 4px; }

.back-link { display: inline-block; margin-bottom: 15px; }
.detail-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-bottom: 18px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-section { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #eee; }
.detail-section h2 { margin-bottom: 10px; }
.screenshots { margin-top: 12px; }
.screenshots ul { display: flex; gap: 10px; margin: 8px 0 0; padding: 3px 3px 8px; overflow-x: auto; list-style: none; }
.screenshots li { flex: 0 0 auto; }
.screenshots img { width: auto; height: auto; max-height: clamp(150px, 21vw, 290px); max-width: min(500px, 72vw); border-radius: 5px; }
.version-list { list-style: none; margin: 0; padding: 0; }
.version-list li { padding: 12px 0; }
.version-list li + li { border-top: 1px solid #eee; }
.version-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.version-list p { margin-top: 6px; }

.search-box { max-width: 680px; }
.search-box label { display: block; margin-bottom: 5px; font-weight: 600; }
.search-box input { width: 100%; min-width: 0; padding: 7px 12px; color: #333; border: 1px solid #ccc; border-radius: 4px; box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%); }
.search-box input:focus { outline: 0; border-color: #66afe9; box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 5px rgb(102 175 233 / 60%); }
#search-status:not(:empty) { margin-top: 8px; }

@media (max-width: 750px) {
  html { scroll-padding-top: 95px; }
  .workspace { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .sidebar { z-index: 2; min-height: 0; border-right: 0; border-bottom: 1px solid #e7e7e7; }
  .brand { min-height: 38px; padding-inline: 12px; }
  .section-nav { display: flex; flex-wrap: wrap; padding: 0 10px 6px; }
  .section-nav a { padding: 5px 9px; }
  main { padding: 19px 15px 32px; }
  h1 { font-size: 28px; }
}
@media (max-width: 560px) {
  .home-news, .news-lead.with-image .news-card-content, .card-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-icon { width: 72px; height: 72px; }
}
