@font-face {
  font-family: Roboto;
  src: url("./Roboto-Regular.latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0, U+2, U+D, U+20-7E, U+A0-FF, U+131, U+152-153, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-200B, U+2010-2011, U+2013-2015, U+2017-201E, U+2020-2022, U+2025-2027, U+2030, U+2032-2033, U+2039-203A, U+203C, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Roboto;
  src: url("./Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+100-130, U+132-151, U+154-17F, U+18F, U+192, U+1A0-1A1, U+1AF-1B0, U+1F0, U+1FA-1FF, U+218-21B, U+237, U+259, U+2C7, U+2C9, U+2D8-2D9, U+2DB, U+2DD, U+2F3, U+300-301, U+303, U+309, U+30F, U+323, U+384-38A, U+38C, U+38E-3A1, U+3A3-3CE, U+3D1-3D2, U+3D6, U+400-486, U+488-513, U+1E00-1E01, U+1E3E-1E3F, U+1E80-1E85, U+1EA0-1EF9, U+1F4D, U+207F, U+20A3-20A4, U+20A6-20AB, U+20B1, U+20B9-20BA, U+20BC-20BD, U+2105, U+2113, U+2116, U+2126, U+212E, U+215B-215E, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+EE01-EE02, U+F6C3, U+FB01-FB04, U+FFFC;
}

@font-face {
  font-family: Roboto;
  src: url("./Roboto-Bold.latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0, U+2, U+D, U+20-7E, U+A0-FF, U+131, U+152-153, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-200B, U+2010-2011, U+2013-2015, U+2017-201E, U+2020-2022, U+2025-2027, U+2030, U+2032-2033, U+2039-203A, U+203C, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Roboto;
  src: url("./Roboto-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+100-130, U+132-151, U+154-17F, U+18F, U+192, U+1A0-1A1, U+1AF-1B0, U+1F0, U+1FA-1FF, U+218-21B, U+237, U+259, U+2C7, U+2C9, U+2D8-2D9, U+2DB, U+2DD, U+2F3, U+300-301, U+303, U+309, U+30F, U+323, U+384-38A, U+38C, U+38E-3A1, U+3A3-3CE, U+3D1-3D2, U+3D6, U+400-486, U+488-513, U+1E00-1E01, U+1E3E-1E3F, U+1E80-1E85, U+1EA0-1EF9, U+1F4D, U+207F, U+20A3-20A4, U+20A6-20AB, U+20B1, U+20B9-20BA, U+20BC-20BD, U+2105, U+2113, U+2116, U+2126, U+212E, U+215B-215E, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+EE01-EE02, U+F6C3, U+FB01-FB04, U+FFFC;
}

:root {
  color-scheme: light;
  --ink: #242b38;
  --ink-strong: #121d33;
  --muted: #526277;
  --link: #0757b3;
  --blue: #247fff;
  --blue-btn: #1668e3;
  --blue-soft: #eaf2ff;
  --blue-border: #cfe0fa;
  --paper: #ffffff;
  --surface: #f4f7fb;
  --border: #dce6f2;
  --divider: #edf2f8;
  --black: #000000;
  --btn-black: #0a0b09;
  --radius: 14px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 24px rgba(16, 56, 120, 0.06);
  --shadow-card-hover: 0 12px 30px rgba(16, 56, 120, 0.11);
  --space: clamp(24px, 3.6vw, 44px);
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 Roboto, "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", "PingFang SC", "Microsoft YaHei", system-ui, Arial, sans-serif;
}

:lang(zh-CN) {
  font-family: "PingFang SC", "Microsoft YaHei", Roboto, system-ui, sans-serif;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #eaf2ff 0%, #f5f9ff 340px, #ffffff 620px);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

:where(a, summary, button):focus-visible {
  outline: 3px solid #75b6ff;
  outline-offset: 3px;
}

img {
  display: block;
  max-inline-size: 100%;
}

h1, h2, h3 {
  color: var(--ink-strong);
  margin-block: 0 0.45em;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(20px, 2.2vw, 26px);
}

h3 {
  font-size: clamp(16px, 1.5vw, 19px);
}

p {
  color: var(--muted);
  margin-block: 0 1rem;
}

.shell {
  inline-size: min(1160px, 100% - clamp(32px, 6vw, 80px));
  margin-inline: auto;
}

main.shell {
  flex: 1;
  padding-block: clamp(24px, 3.4vw, 42px) clamp(48px, 6vw, 84px);
}

/* ==================== OFFICIAL BLACK SITE HEADER ==================== */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: var(--black);
  border-block-end: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 36px);
  min-block-size: clamp(58px, 5vw, 74px);
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-block-size: 44px;
}

.brand img {
  inline-size: clamp(92px, 8vw, 126px);
  block-size: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px clamp(16px, 2.5vw, 32px);
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 44px;
  padding-inline: 2px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.16s ease;
}

.nav a:hover {
  color: #ffffff;
}

.nav a[aria-current="page"] {
  color: #ffffff;
  font-weight: 700;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 6px;
  block-size: 2px;
  border-radius: 2px;
  background: var(--blue);
}

/* Language Switcher matching Official Website Header */
.languages {
  position: relative;
  margin-inline-start: auto;
  z-index: 120;
}

.languages summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-block-size: 44px;
  min-inline-size: 44px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.languages summary::-webkit-details-marker {
  display: none;
}

.languages summary::after {
  content: "";
  inline-size: 7px;
  block-size: 7px;
  margin-inline-start: 2px;
  margin-block-start: -2px;
  border: solid currentColor;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.languages[open] summary::after {
  margin-block-start: 3px;
  transform: rotate(225deg);
}

.languages summary:hover,
.languages[open] summary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.language-icon {
  flex: none;
  opacity: 0.92;
}

.language-dropdown {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  min-inline-size: min(196px, calc(100vw - 32px));
  padding-block-start: 12px;
  z-index: 130;
}

.language-dropdown::before {
  content: "";
  position: absolute;
  inset-block-start: 6px;
  inset-inline-end: 18px;
  inline-size: 12px;
  block-size: 12px;
  background: var(--paper);
  border-inline-start: 1px solid #f0f1f4;
  border-block-start: 1px solid #f0f1f4;
  transform: rotate(45deg);
  pointer-events: none;
}

[dir="rtl"] .language-dropdown::before {
  transform: rotate(-45deg);
}

.languages ul {
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-block-size: min(65vh, 420px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 42, 82, 0.18);
}

.languages a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  padding: 4px 14px;
  color: #333333;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.languages a:hover,
.languages a[aria-current="page"] {
  background: #f2f7ff;
  color: var(--link);
}

.languages a[aria-current="page"] {
  font-weight: 700;
}

.languages a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: -2px;
}

/* ==================== OFFICIAL BLACK SITE FOOTER ==================== */
.site-footer {
  background: var(--black);
  color: #ffffff;
}

.footer {
  padding-block: clamp(24px, 3vw, 34px) 16px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-block-end: 20px;
  border-block-end: 1px solid #2c2c2c;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 44px;
  color: #c8cdd6;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copyright {
  margin: 14px 0 0;
  color: #8b94a3;
  font-size: 13px;
  text-align: center;
}

/* ==================== SHARED CARDS, BREADCRUMBS & LINKS ==================== */
.breadcrumb,
.guide-links,
.platform-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.breadcrumb {
  gap: 4px 10px;
  margin-block-end: 16px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  color: var(--link);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.card {
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-link,
.download-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 44px;
  color: var(--link);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.about-link:hover,
.download-help:hover {
  color: var(--blue-btn);
  text-decoration: underline;
}

/* ==================== HOME DIRECTORY VIEW ==================== */
.directory-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.72fr);
  align-items: center;
  gap: clamp(20px, 3.5vw, 44px);
  overflow: hidden;
  padding-inline: clamp(22px, 3.8vw, 48px);
  background: linear-gradient(135deg, #f7faff 0%, #eaf2ff 100%);
  border: 1px solid var(--blue-border);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(16, 56, 120, 0.08);
}

.directory-intro > div {
  padding-block: clamp(28px, 4vw, 48px);
}

.directory-intro h1 {
  margin-block-end: 12px;
}

.directory-intro p {
  max-inline-size: 52ch;
  margin: 0;
  font-size: clamp(15.5px, 1.4vw, 18px);
  line-height: 1.65;
}

.directory-image {
  inline-size: min(100%, 340px);
  block-size: auto;
  justify-self: center;
  align-self: end;
  filter: drop-shadow(0 14px 28px rgba(16, 56, 120, 0.14));
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  margin-block: clamp(22px, 3vw, 32px);
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.app-identity {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
}

.app-identity > div {
  min-inline-size: 0;
}

.app-icon {
  flex: none;
  border-radius: 22%;
  box-shadow: 0 6px 16px rgba(18, 38, 63, 0.12);
}

.app-identity h1,
.app-identity h2,
.app-card > p {
  margin: 0;
}

.app-card > p {
  line-height: 1.65;
  min-block-size: calc(2 * 1.65em);
}

@supports (grid-template-rows: subgrid) {
  .catalog-grid {
    row-gap: 18px;
  }

  .catalog-grid .app-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-items: start;
  }

  .catalog-grid .app-card > p {
    min-block-size: 0;
  }
}

.platform-links {
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.platform-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 38px;
  padding: 6px 13px;
  color: #2c4364;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.platform-links a:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--link);
}

.download-actions .platform-links {
  margin-block-start: 10px;
}

/* ==================== OFFICIAL BUTTONS ==================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 52px;
  max-inline-size: 100%;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--paper);
  background: var(--btn-black);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.button img {
  flex: none;
}

.button.primary:hover {
  background: #1f2937;
  box-shadow: 0 8px 20px rgba(10, 11, 9, 0.2);
}

.manual-download {
  min-block-size: 46px;
  margin-block-start: 10px;
  border-color: #c6d8f3;
  color: var(--link);
  background: var(--paper);
  font-size: 15px;
  font-weight: 600;
}

.manual-download:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--link);
}

/* ==================== PRODUCT DOWNLOAD PAGE ==================== */
.download-panel {
  border-color: var(--blue-border);
  box-shadow: 0 12px 34px rgba(16, 56, 120, 0.09);
}

.download-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(20px, 3.2vw, 36px);
  align-items: start;
}

.app-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.app-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.app-brand-link {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.app-brand-link:hover {
  text-decoration: underline;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--link);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
}

.download-actions {
  display: flex;
  flex-direction: column;
}

.download-actions .primary,
.download-actions .manual-download {
  inline-size: 100%;
}

.status {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.status-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.download-help {
  margin-block-start: 6px;
  align-self: flex-start;
}

.release-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--divider);
}

.release-summary > div {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid #e6eef8;
  border-radius: 12px;
}

.release-summary dt,
.specs dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.release-summary dd,
.specs dd {
  margin: 6px 0 0;
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}

.release-summary dd {
  font-size: 16px;
  font-weight: 700;
}

.app-about,
.specs,
.download-support {
  margin-block-start: clamp(18px, 2.4vw, 26px);
}

.app-about p {
  margin-block-end: 6px;
}

/* Detail Sections & Icon Badges (Aligned with Official Help Center) */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 10px;
  background: var(--blue-soft);
  border: 1px solid #d7e6fc;
  color: var(--blue);
}

.icon-badge.is-sm {
  inline-size: 30px;
  block-size: 30px;
  border-radius: 8px;
}

.specs > h2 {
  margin-block-end: 20px;
  padding-block-end: 14px;
  border-block-end: 1px solid var(--divider);
}

.specs section + section {
  margin-block-start: 24px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--divider);
}

.specs h3 {
  margin-block-end: 14px;
}

.specs dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.specs dl > div {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid #e6eef8;
  border-radius: 10px;
}

.specs dl > div.spec-wide {
  grid-column: span 2;
}

.specs dd {
  font-size: 14.5px;
}

.specs dd.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
}

.specs small {
  display: block;
  margin-block-start: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

/* Support Banner & Article Links */
.download-support,
.directory-support {
  background: linear-gradient(135deg, #f3f8ff 0%, #eaf2ff 100%);
  border-color: var(--blue-border);
}

.support-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-block-end: 18px;
}

.support-head h2 {
  margin-block-end: 4px;
}

.support-head p {
  margin: 0;
}

.support-btn,
.guide-cta-primary,
.guide-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 42px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.support-btn,
.guide-cta-primary {
  background: var(--blue-btn);
  color: #ffffff;
}

.support-btn:hover,
.guide-cta-primary:hover {
  background: var(--link);
  color: #ffffff;
}

.guide-cta-secondary {
  background: var(--paper);
  border: 1px solid #c6d8f3;
  color: var(--link);
}

.guide-cta-secondary:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.article-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-block-size: 52px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--link);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.article-links a:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 16px rgba(7, 87, 179, 0.09);
  transform: translateY(-1px);
}

.row-chevron {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: #8b9bb4;
  transition: color 0.16s ease, transform 0.16s ease;
}

.row-chevron svg {
  inline-size: 16px;
  block-size: 16px;
}

.article-links a:hover .row-chevron {
  color: var(--blue);
  transform: translateX(2px);
}

[dir="rtl"] .row-chevron svg {
  transform: scaleX(-1);
}

[dir="rtl"] .article-links a:hover .row-chevron {
  transform: translateX(-2px);
}

/* ==================== INSTALL GUIDE & ARTICLE PAGES ==================== */
.guide {
  max-inline-size: 800px;
  margin-inline: auto;
}

.guide-intro {
  margin-block-end: 24px;
  padding-block-end: 20px;
  border-block-end: 1px solid var(--border);
}

.guide-intro p {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 18px);
}

.step-list {
  counter-reset: apk-step;
  list-style: none;
  margin: 16px 0 28px;
  padding: 0;
}

.step-list li {
  counter-increment: apk-step;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 10px;
  color: var(--ink);
  line-height: 1.65;
}

.step-list li::before {
  content: counter(apk-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  inline-size: 30px;
  block-size: 30px;
  margin-block-start: 1px;
  border-radius: 50%;
  background: #edf4ff;
  border: 1px solid #c9dfff;
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
}

.callout-box {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--blue);
  border-radius: 10px;
}

.callout-box h2 {
  font-size: 18px;
  margin-block-end: 6px;
}

.callout-box p {
  margin-block-end: 8px;
}

.article-content section + section {
  margin-block-start: 24px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--divider);
}

.article-content p {
  margin: 0;
  color: var(--ink);
  line-height: 1.72;
}

.guide-links {
  margin-block: 24px;
  gap: 12px;
}

/* ==================== TRUST BADGES & SVG ICONS ==================== */
.apk-icon-definitions {
  position: absolute;
}

.detail-icon {
  flex: none;
  inline-size: 1.15em;
  block-size: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-heading,
.official-source,
#security-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.specs dt .detail-icon {
  color: var(--link);
}

.official-source,
#security-summary.signature-verified {
  color: #146342;
  background: #eaf7ef;
  border: 1px solid #c3e6d1;
  border-radius: 999px;
}

.official-source {
  inline-size: fit-content;
  max-inline-size: 100%;
  min-block-size: 36px;
  margin-block-start: 6px;
  padding: 5px 12px;
  font-size: 13.5px;
  font-weight: 700;
}

#security-summary {
  inline-size: fit-content;
  max-inline-size: 100%;
  min-block-size: 32px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

#security-summary .detail-icon {
  display: none;
}

#security-summary.signature-verified {
  padding: 4px 10px;
  font-size: 13px;
}

#security-summary.signature-verified .detail-icon {
  display: block;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 900px) {
  .specs dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .specs dl > div.spec-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding-block: 8px;
  }
  .header-inner .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .languages {
    grid-column: 2;
    grid-row: 1;
    margin-inline-start: 0;
  }
  .languages summary span {
    display: none;
  }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-block-start: 1px solid rgba(255, 255, 255, 0.1);
    padding-block-start: 2px;
    gap: 14px;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    flex: none;
    white-space: nowrap;
    min-block-size: 38px;
    font-size: 13px;
  }
  .directory-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .directory-image {
    display: none;
  }
  .catalog-grid,
  .download-overview,
  .specs dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalog-grid {
    row-gap: clamp(16px, 2.2vw, 24px);
  }
  .catalog-grid .app-card {
    display: flex;
    grid-row: auto;
  }
  .catalog-grid .app-card > p {
    min-block-size: 0;
  }
  .specs dl > div.spec-wide {
    grid-column: auto;
  }
  .release-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .download-overview .app-icon {
    inline-size: 72px;
    block-size: 72px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
