/*
Theme Name: AK47 Sports Guide
Theme URI: https://example.com/ak47-sports-guide
Author: AK47 Sports Guide Editorial Team
Author URI: /
Description: Independent technology publication theme covering AK47 Sports, Android streaming applications, APK installation, Android TV and Smart TV compatibility, PC emulation, troubleshooting and safety. One macro context per site: download the ak47sports apk, then watch live sports. Clean, minimal, strictly monochrome (black, white and grey) and typography-led, with carefully aligned columns. Not affiliated with any application developer.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ak47-sports-guide
Tags: news, minimal, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Design tokens — strictly monochrome
   --------------------------------------------------------------------------
   One ink, one paper, a few greys between them. There are no accent hues: the
   hierarchy is carried entirely by weight, spacing and hairline rules, which is
   what keeps a black-and-white layout reading as deliberate rather than plain.
   ========================================================================== */

:root {
  --radius: 0.5rem;
  --radius-sm: calc(var(--radius) - 2px);
  --radius-md: var(--radius);
  --radius-lg: calc(var(--radius) + 2px);
  --radius-xl: calc(var(--radius) + 4px);

  --background: #ffffff;
  --foreground: #0a0a0a;
  --surface: #fafafa;
  --surface-raised: #f2f2f2;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;
  --primary: #111111;
  --primary-hover: #2e2e2e;
  --primary-foreground: #ffffff;
  --secondary: #f2f2f2;
  --secondary-foreground: #1a1a1a;
  --muted: #f4f4f4;
  --muted-foreground: #5f5f5f;
  --accent: #111111;
  --accent-foreground: #ffffff;
  --destructive: #111111;
  --destructive-foreground: #ffffff;
  --success: #111111;
  --warning: #111111;
  --border: #e3e3e3;
  --input: #d6d6d6;
  --ring: #111111;

  /* Brand helpers kept by name (they are referenced across the sheet) but
     resolved to greys so the whole interface stays monochrome. */
  --brand-blue: #111111;
  --brand-blue-dark: #000000;
  --brand-blue-light: #1f1f1f;
  --brand-steel: #9a9a9a;
  --brand-steel-light: #111111;
  --brand-steel-dark: #6b6b6b;
  --brand-red: #111111;
  --brand-wood: #6b6b6b;
  --metal-gradient: linear-gradient(135deg, #1a1a1a 0%, #4d4d4d 100%);
  --blue-gradient: linear-gradient(135deg, #1f1f1f 0%, #000000 100%);
  --prose-foreground: #262626;
  --hairline: rgba(0, 0, 0, 0.09);

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

* {
  border-color: var(--border);
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--foreground);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

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

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.container {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

.container--narrow {
  max-width: 48rem;
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent 72%);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.75rem;
  flex-wrap: wrap;
}

.site-header__logo {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.site-header__logo-mark {
  width: 2.375rem;
  height: 2.375rem;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 2px 12px rgba(0, 0, 0, 0.12);
}

.site-header__logo-text strong {
  font-weight: 800;
  background: var(--metal-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  margin-left: auto;
  display: none;
  flex-wrap: nowrap;
  gap: 0.125rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }
}

/* Mobile menu styles */
.mobile-menu {
  flex-shrink: 0;
}

.mobile-menu__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--foreground);
  font-size: 1.25rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu__summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.mobile-menu__panel .btn--download {
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}

.mobile-menu__panel .site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-left: 0;
}

.mobile-menu__panel .site-nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--foreground);
}

.mobile-menu__panel .site-nav a:hover,
.mobile-menu__panel .site-nav a.is-current {
  background: var(--surface);
  color: var(--primary);
}

.site-nav a {
  border-radius: var(--radius-md);
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--muted-foreground);
  transition: background-color 0.15s, color 0.15s;
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--foreground);
}

.site-nav a.is-current {
  background: var(--surface);
  color: var(--foreground);
}

.site-header__search {
  display: flex;
  align-items: center;
  color: var(--muted-foreground);
}

.site-header__search .search-form {
  margin: 0;
  max-width: none;
}

.site-header__search .search-form input[type="search"] {
  width: 6.5rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  transition: width 0.15s ease;
}

.site-header__search .search-form input[type="search"]:focus {
  width: 11rem;
}

.site-header__search .search-form button {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .site-header__search {
    display: none;
  }
}

.site-header__search svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-menu {
  position: relative;
  margin-left: auto;
}

.mobile-menu__summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.mobile-menu__summary::-webkit-details-marker {
  display: none;
}

.mobile-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  display: grid;
  gap: 0.25rem;
  width: min(20rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
  z-index: 100;
}

.mobile-menu__panel a {
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.mobile-menu__panel a:hover {
  background: var(--surface-raised);
  color: var(--foreground);
}

.site-header__tagline {
  border-top: 1px solid var(--hairline);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0));
}

/* The tagline is the site's one-sentence macro context. It wraps instead of
   scrolling sideways, so the sentence stays readable on a phone. */
.site-header__tagline .container {
  padding-block: 0.375rem;
}

.site-header__tagline p {
  margin: 0;
  max-width: 72rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }
}

/* ==========================================================================
   4. Buttons & links
   ========================================================================== */

.btn {
  display: inline-block;
  border-radius: var(--radius-md);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--primary-foreground);
}

.btn--outline {
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn--outline:hover {
  background: var(--surface);
}

.text-link {
  color: var(--primary);
}

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

.text-link--muted {
  color: var(--foreground);
}

.text-link--muted:hover {
  color: var(--primary);
}

/* ==========================================================================
   5. Cards & grids
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.card--pad {
  padding: 1.5rem;
}

.card--link {
  transition: border-color 0.15s, background-color 0.15s;
}

.card--link:hover {
  border-color: rgba(0, 0, 0, 0.35);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.grid--tight {
  gap: 0.75rem;
}

/* Mobile-first responsive grids */
@media (min-width: 480px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Platform quicklinks grid */
.platform-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .platform-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.platform-card {
  display: flex;
}

.platform-card .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  min-height: 100%;
}

.platform-card__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
  /* Emoji are the only colour left in the UI; flatten them to greys so the
     palette stays strictly black and white. */
  filter: grayscale(1);
  opacity: 0.85;
}

.platform-card__label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--foreground);
}

.platform-card .card--link:hover .platform-card__label {
  color: var(--primary);
}

/* Download page primary download panel — a band on the page, not a boxed CTA. */
.download-primary {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .download-primary {
    grid-template-columns: 1fr 320px;
  }
}

.download-primary__content h2 {
  margin: 0 0 0.5rem;
  font-size: var(--step-3);
}

.download-primary__meta {
  margin: 0 0 0.75rem;
  font-size: var(--step--1);
  color: var(--muted-foreground);
}

.download-primary__note {
  margin: 0;
  font-size: var(--step--1);
  color: var(--muted-foreground);
}

.download-primary__action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.download-primary__action .btn--download-xl {
  padding: 1rem 1.5rem;
  font-size: var(--step-1);
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-direction: column;
}

.download-primary__verify {
  margin: 0;
  text-align: center;
  font-size: var(--step--1);
}

/* Make download URL editable via custom field */

/* Fluid typography scale */
:root {
  --step--2: clamp(0.69rem, 0.67rem + 0.13vw, 0.78rem);
  --step--1: clamp(0.83rem, 0.80rem + 0.17vw, 0.94rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.21vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.15rem + 0.26vw, 1.35rem);
  --step-2:  clamp(1.44rem, 1.37rem + 0.32vw, 1.62rem);
  --step-3:  clamp(1.73rem, 1.63rem + 0.39vw, 1.94rem);
  --step-4:  clamp(2.07rem, 1.93rem + 0.47vw, 2.33rem);
  --step-5:  clamp(2.49rem, 2.29rem + 0.57vw, 2.79rem);
  --step-6:  clamp(2.98rem, 2.72rem + 0.68vw, 3.35rem);
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Skip link visible on focus */
.screen-reader-text:focus {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--background);
  color: var(--primary);
  padding: 0.5rem 1rem;
  z-index: 10000;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .hero__actions,
  .related-section,
  .post-toc,
  .scheduled-card,
  .breadcrumb,
  .pagination,
  .btn {
    display: none !important;
  }
  .entry--narrow {
    max-width: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  a {
    text-decoration: underline !important;
    color: black !important;
  }
}

/* ==========================================================================
   6. Hero & homepage sections
   ========================================================================== */

.hero {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.hero__kicker,
.section__kicker {
  margin: 0;
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  max-width: 56rem;
  margin-top: 1rem;
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1.1;
}

.hero__lede {
  max-width: 42rem;
  margin-top: 1.25rem;
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--muted-foreground);
}

.hero__actions {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__note {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--muted-foreground);
}

.hero__visual {
  max-width: 480px;
  margin-left: auto;
}

@media (max-width: 767px) {
  .hero__visual {
    max-width: 100%;
    margin-left: 0;
    margin-top: 1.5rem;
  }
}

/* The hero pairs a headline with a large emblem. Keep it a single column until
   there is genuinely room for two, instead of squeezing both on a phone. */
@media (max-width: 899px) {
  .hero > .grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .hero > .grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.section {
  margin-top: 4rem;
}

.section--card-gap {
  margin-top: 1.5rem;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.section h2.section--sub {
  font-size: 1.5rem;
}

/* Homepage stat-style definition lists */
.stats {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
}

.stats dt {
  color: var(--muted-foreground);
}

.stats dd {
  margin: 0.25rem 0 0;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section__more {
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

/* ==========================================================================
   7. Feature / link cards
   ========================================================================== */

.card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.card h3 + p,
.card .card__text {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.card .card__meta {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.card__kicker {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   8. Tables
   ========================================================================== */

.table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table caption {
  margin-bottom: 0.5rem;
  text-align: left;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.data-table th {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
}

.data-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  vertical-align: top;
  color: var(--muted-foreground);
}

/* Wide comparison tables scroll inside their wrapper on small screens rather
   than crushing every column into an unreadable sliver. */
@media (max-width: 767px) {
  table.data-table {
    min-width: 32rem;
  }
}

/* ==========================================================================
   9. Breadcrumbs & article layout
   ========================================================================== */

.breadcrumbs {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.breadcrumbs li[aria-current] {
  color: var(--foreground);
}

.entry {
  max-width: 1152px;
  margin-inline: auto;
  padding: 2.5rem clamp(1rem, 2.5vw, 2rem);
}

.entry--narrow {
  max-width: 48rem;
  padding-block: 2.5rem;
}

.entry__kicker {
  margin-top: 1.5rem;
}

.entry h1 {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .entry h1 {
    font-size: 2.25rem;
  }
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.entry__lede {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Two-column article layout: sticky sidebar TOC + reading column */
.post-layout {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: 0 clamp(1rem, 2.5vw, 2rem) 2.5rem;
  align-items: start;
}

.post-layout .entry {
  max-width: none;
  margin-inline: 0;
  padding: 0;
  /* Grid items default to min-width:auto, which lets a wide table inside the
     article stretch the whole page. Allow the column to shrink so tables
     scroll inside .table-wrap instead of breaking the layout. */
  min-width: 0;
}

.post-toc {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  order: -1;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.post-toc__title {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.post-toc__list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.125rem;
}

.post-toc__item a {
  display: block;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted-foreground);
  text-decoration: none;
}

.post-toc__item a:hover {
  background: var(--surface-raised);
  color: var(--foreground);
}

.post-toc__item--h3 {
  padding-left: 0.875rem;
}

.post-toc__item.is-active a {
  background: rgba(0, 0, 0, 0.06);
  color: var(--foreground);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .post-layout {
    grid-template-columns: 16rem minmax(0, 48rem);
    justify-content: center;
    column-gap: 3rem;
  }

  .post-toc {
    order: 0;
  }
}

@media (max-width: 1023px) {
  .post-toc {
    display: none;
  }
}

/* ==========================================================================
   10. Block renderer (article body)
   ========================================================================== */

.prose {
  margin-top: 1.5rem;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
}

.prose a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--primary);
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.prose p {
  margin-top: 1rem;
  line-height: 1.75;
  color: var(--prose-foreground);
}

.prose ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.prose ul li {
  list-style: disc;
  margin: 0.5rem 0;
  line-height: 1.75;
  color: var(--prose-foreground);
}

/* Step cards work anywhere (article bodies and hand-built page templates). */
ol.steps {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem;
}

.steps li h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.steps li .step-num {
  margin-right: 0.5rem;
  color: var(--primary);
}

.steps li p {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.prose blockquote,
.quick-answer {
  margin: 1.5rem 0 0;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-left: 3px solid var(--foreground);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.03);
  padding: 1.25rem;
}

.quick-answer__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.quick-answer p:last-child {
  margin-bottom: 0;
}

.note {
  margin: 1.5rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 1.25rem;
}

.note--warn {
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.04);
}

.note h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.note p:last-child {
  margin-bottom: 0;
}

.claim {
  margin: 1.25rem 0 0;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.claim p:last-child {
  margin-bottom: 0;
}

.verification-tag {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.verification-tag--developer {
  border-color: rgba(0, 0, 0, 0.35);
  color: var(--foreground);
}

.verification-tag--users {
  border-color: var(--border);
  color: var(--muted-foreground);
}

.verification-tag--verified {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
  font-weight: 600;
}

.unique-detail {
  margin: 2rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.02);
  padding: 1.25rem;
  line-height: 1.75;
}

.unique-detail strong {
  font-weight: 600;
}

/* Table of contents */
.toc {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
}

.toc h2 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.toc ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin-top: 0.375rem;
}

.toc a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.toc a:hover {
  color: var(--foreground);
}

/* ==========================================================================
   11. FAQ
   ========================================================================== */

.faq-section {
  margin-top: 3rem;
}

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.faq-item dt {
  font-weight: 600;
}

.faq-item dd {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ==========================================================================
   12. Article trust footer & related
   ========================================================================== */

.related-section {
  margin-top: 3rem;
}

.related-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.related-section__lede {
  margin-top: 0.75rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.related-reading {
  margin-top: 2rem;
}

.related-reading h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.related-reading .card__text {
  margin-top: 0.375rem;
}

.related-reading__list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.related-reading__list li {
  list-style: disc;
  margin: 0.5rem 0;
  line-height: 1.75;
}

.related-reading__list .internal-link {
  color: var(--primary);
}

.trust-footer {
  margin-top: 3rem;
  padding: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.trust-footer p {
  margin: 0;
}

.continue-link {
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.scheduled-card {
  margin-top: 2rem;
  padding: 1.5rem;
}

.scheduled-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.scheduled-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.scheduled-card .btn {
  margin-top: 1rem;
}

/* ==========================================================================
   13. Search
   ========================================================================== */

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 36rem;
  margin: 2rem 0 0;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  color: var(--foreground);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
}

.search-form input[type="search"]:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

.search-form button {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 0;
  border-radius: var(--radius-md);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.search-form button:hover {
  background: var(--primary-hover);
}

.no-results {
  margin-top: 2rem;
  max-width: 36rem;
  padding: 1.5rem;
}

.no-results p {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
}

/* ==========================================================================
   14. Footer
   ========================================================================== */

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.site-footer__cols {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .site-footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

.site-footer__col h2 {
  font-size: 0.875rem;
  font-weight: 600;
}

.site-footer__col ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.site-footer__col a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.site-footer__col a:hover {
  color: var(--foreground);
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
}

.site-footer__bottom .container {
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom p + p {
  margin-top: 0.5rem;
}

.site-footer__bottom a {
  color: var(--muted-foreground);
}

.site-footer__bottom a:hover {
  color: var(--foreground);
}

/* ==========================================================================
   15. 404 & author cards
   ========================================================================== */

.error-404 {
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
}

.error-404__inner {
  max-width: 28rem;
  text-align: center;
}

.error-404 h1 {
  font-size: 4.5rem;
  font-weight: 700;
}

.error-404 h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.error-404 p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.error-404 .btn {
  margin-top: 1.5rem;
}

.author-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-card__avatar {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-raised);
  font-size: 0.875rem;
  font-weight: 600;
}

.author-card h2 {
  font-size: 1rem;
  font-weight: 600;
}

.author-card .author-card__role {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.author-card .author-card__bio {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.author-card .author-card__creds {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   16. Download buttons, codes & footer strip
   ========================================================================== */

.hero__note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.btn--download {
  background: var(--blue-gradient);
  color: var(--primary-foreground);
  border: 1px solid var(--foreground);
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.btn--download:hover {
  background: linear-gradient(135deg, #333333, #000000);
  color: var(--primary-foreground);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.btn--download-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.site-header__download {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.mobile-menu__panel > .btn {
  margin: 0 0 0.5rem;
  width: 100%;
}

/* App spec rows (front page / download block) */
.app-specs {
  display: grid;
  gap: 0.625rem 1.5rem;
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .app-specs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.app-specs div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hairline);
}

.app-specs dt {
  color: var(--muted-foreground);
}

.app-specs dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

/* Downloader transfer codes */
.downloader-codes {
  display: grid;
  gap: 0.625rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.downloader-codes li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.downloader-codes__label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.downloader-codes__code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-steel-light);
}

/* Footer download strip */
.footer-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 3rem;
}

.footer-download h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-download p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   17. Brand roundel, legal pages & sport grids
   ========================================================================== */

/* The emblem, framed as the roundel it is — used on the homepage hero. */
.brand-roundel {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.05), transparent 62%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.07), transparent 64%),
    var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.brand-roundel img {
  width: 100%;
  border-radius: 50%;
}

/* Legal / policy pages — a quiet rule instead of another box. */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.legal-lede {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--foreground);
  background: rgba(0, 0, 0, 0.03);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Sport / league coverage grid */
.sport-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .sport-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sport-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sport-card__list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.sport-card__list li {
  list-style: disc;
  margin: 0.25rem 0;
}

/* Inline download line — a sentence with a link, not a boxed CTA. */
.download-line {
  margin: 1.25rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.download-line a {
  color: var(--brand-blue-light);
  font-weight: 600;
}

.download-line a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   18. Banner ad slots (/download/)
   --------------------------------------------------------------------------
   Two optional slots, one before and one after the download band. Both are
   filled in from Appearance → Customize → Advertisement and are hidden when
   the field is empty, so they never leave a gap on a site with no ads.
   ========================================================================== */

.ad-slot {
  margin: 2rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.ad-slot__label {
  display: block;
  margin-bottom: 0.625rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.ad-slot__body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.ad-slot__body a {
  display: inline-block;
  max-width: 100%;
}

/* Print: legal/policy pages should stay readable. */
@media print {
  .brand-roundel,
  .hero__visual {
    display: none !important;
  }

  .ad-slot {
    display: none !important;
  }
}

/* ==========================================================================
   19. Homepage landing sections
   --------------------------------------------------------------------------
   The homepage follows the common APK-landing composition (hero → what is →
   requirements → features → download → per-device install → channels → issues →
   comparison → pros/cons → what's new → tips → FAQ → conclusion), rendered in
   the site's monochrome tokens rather than in colour.
   ========================================================================== */

/* Hero capability pills */
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--foreground);
}

.hero__pill-icon,
.icon-card__icon {
  filter: grayscale(1);
  opacity: 0.85;
}

/* Icon cards: features, issues, what's new, tips */
.icon-card {
  display: flex;
  flex-direction: column;
}

.icon-card__icon {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.625rem;
}

.icon-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.icon-card p {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.icon-card .text-link {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
}

/* System requirements / pros checklist */
.check-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem;
  max-width: 48rem;
  font-size: 0.9375rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.check-list li::before {
  content: "\2714\00a0";
  position: absolute;
  left: 0;
  color: var(--foreground);
  font-weight: 600;
}

/* Download panel: spec rows + CTA + Downloader codes + trust badges */
.download-panel {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

@media (min-width: 768px) {
  .download-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

.download-panel .app-specs {
  margin-top: 0;
}

.download-panel__cta {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.download-panel__cta .btn {
  width: 100%;
  text-align: center;
}

.download-panel__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.trust-badges li::before {
  content: "\2714\00a0";
  color: var(--foreground);
  font-weight: 600;
}

/* iPhone / non-Android callout */
.callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-left: 3px solid var(--foreground);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.03);
}

.callout h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.callout p {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.callout__note {
  color: var(--foreground);
  font-weight: 600;
}

/* Channel line-up columns */
.channel-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.channel-card .sport-card__list {
  margin-top: 0.75rem;
}

/* Pros and cons */
.proscons {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .proscons {
    grid-template-columns: 1fr 1fr;
  }
}

.proscons__col {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.proscons__col h3 {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.proscons__list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.proscons__list li {
  position: relative;
  padding-left: 1.35rem;
}

.proscons__list li::before {
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--foreground);
}

.proscons--pros .proscons__list li::before {
  content: "\2714";
}

.proscons--cons .proscons__list li::before {
  content: "\2715";
}

/* Conclusion band */
.conclusion {
  margin-top: 4rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.conclusion h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.conclusion p {
  margin: 0.875rem 0 0;
  max-width: 48rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}
