:root {
  --color-primary: #0b63ce;
  --color-primary-strong: #084fa6;
  --color-primary-soft: #eaf3ff;
  --color-accent: #13b981;
  --color-accent-strong: #0b9467;
  --color-dark: #071a3d;
  --color-text: #10213d;
  --color-muted: #65738a;
  --color-border: #e2e8f2;
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-warning: #a86300;
  --shadow-sm: 0 8px 24px rgba(13, 35, 67, 0.07);
  --shadow-md: 0 18px 50px rgba(13, 35, 67, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1240px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.menu-open, html.menu-open body { overflow: hidden; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
body.dark-mode {
  --color-text: #e8edf7;
  --color-muted: #aab5c7;
  --color-border: #27344c;
  --color-bg: #0c1424;
  --color-surface: #141f33;
  --color-primary-soft: #142b4f;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.32);
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-strong); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(11, 99, 206, 0.28);
  outline-offset: 3px;
}
svg.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.site-container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.site-main { min-height: 55vh; }
.surface-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; margin: 0; padding: 12px 18px; background: #fff; color: #111; z-index: 100000; top: 8px; right: 8px; border-radius: 8px; }
.skip-link { position: fixed !important; }

/* Header */
.topbar { background: var(--color-dark); color: #dbe7ff; font-size: 13px; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar p { margin: 0; }
.topbar-links { display: flex; gap: 16px; }
.topbar a { color: #dbe7ff; }
.main-header { position: relative; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.site-header { position: sticky; top: 0; z-index: 1000; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 22px; }
.site-branding { flex: 0 0 auto; }
.site-branding .custom-logo-link { display: inline-flex; align-items: center; }
.site-branding .custom-logo { max-height: 52px; width: auto; }
.site-brand-name { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); font-size: 22px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--color-primary), #1f8cff); color: #fff; font-weight: 900; letter-spacing: -1px; box-shadow: 0 10px 20px rgba(11, 99, 206, .22); }
.main-navigation { flex: 1 1 auto; }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; justify-content: center; gap: 2px; }
.primary-menu li { position: relative; }
.primary-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--color-text); border-radius: 10px; font-size: 14px; font-weight: 700; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a, .primary-menu .current-cat > a, .primary-menu .current-cat-ancestor > a { background: var(--color-primary-soft); color: var(--color-primary); }
.primary-menu .sub-menu, .primary-menu .children { position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.primary-menu .sub-menu .sub-menu, .primary-menu .children .children { top: 0; right: calc(100% + 8px); }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu, .primary-menu li:hover > .children, .primary-menu li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a, .primary-menu .children a { min-height: 40px; font-size: 13px; }
.submenu-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); color: var(--color-text); cursor: pointer; }
.icon-button:hover { color: var(--color-primary); border-color: #bdd6f6; background: var(--color-primary-soft); }
.menu-toggle, .menu-close, .mobile-nav-head { display: none; }
.theme-icon-sun { display: none; }
.dark-mode .theme-icon-sun { display: inline-flex; }
.dark-mode .theme-icon-moon { display: none; }
.header-search { position: absolute; inset-inline: 0; top: 100%; padding: 16px 0; background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.header-search[hidden] { display: none; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(2, 10, 25, .62); z-index: 990; }
.nav-backdrop[hidden] { display: none; }

/* Search */
.search-form { display: flex; align-items: stretch; gap: 10px; width: 100%; }
.search-field { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--color-border); border-radius: 13px; padding: 10px 16px; background: var(--color-surface); color: var(--color-text); }
.search-field::placeholder { color: var(--color-muted); }
.search-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 108px; border: 0; border-radius: 13px; padding: 10px 18px; background: var(--color-primary); color: #fff; font-weight: 800; cursor: pointer; }
.search-submit:hover { background: var(--color-primary-strong); }

/* Generic controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border: 1px solid transparent; border-radius: 13px; padding: 10px 20px; font-weight: 800; cursor: pointer; }
.button-primary { background: var(--color-primary); color: #fff; }
.button-primary:hover { background: var(--color-primary-strong); color: #fff; }
.button-large { min-height: 56px; padding-inline: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; }
.eyebrow { display: block; margin-bottom: 4px; color: var(--color-primary); font-size: 13px; font-weight: 900; letter-spacing: .02em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; color: var(--color-text); font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
.section-heading-centered { justify-content: center; text-align: center; }
.home-section { padding-block: 52px; }

/* Hero */
.hero-section { position: relative; overflow: hidden; background: linear-gradient(125deg, #061638 0%, #08296c 52%, #0b63ce 100%); color: #fff; }
.hero-section::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .05); top: -260px; right: -160px; }
.hero-section::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(19, 185, 129, .1); bottom: -260px; left: -80px; }
.hero-grid { position: relative; z-index: 1; min-height: 520px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding-block: 64px; }
.hero-content { max-width: 690px; }
.hero-grid-single { grid-template-columns: 1fr; }
.hero-grid-single .hero-content { max-width: 820px; }
.hero-kicker { display: inline-flex; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 99px; background: rgba(255, 255, 255, .08); color: #d9e7ff; font-size: 13px; font-weight: 800; }
.hero-content h1 { margin: 18px 0 16px; max-width: 680px; font-size: clamp(34px, 5vw, 62px); line-height: 1.3; letter-spacing: -.03em; }
.hero-content > p { margin: 0 0 24px; max-width: 630px; color: #d7e4fa; font-size: 18px; }
.hero-search { max-width: 650px; padding: 8px; background: #fff; border-radius: 17px; box-shadow: 0 20px 45px rgba(0, 0, 0, .23); }
.hero-search .search-field { border: 0; color: #10213d; background: #fff; }
.hero-features { display: flex; flex-wrap: wrap; gap: 18px; margin: 22px 0 0; padding: 0; list-style: none; color: #d9e7ff; font-size: 13px; font-weight: 700; }
.hero-features li { display: inline-flex; align-items: center; gap: 6px; }
.hero-features svg { color: #6ef0bd; }
.hero-apps-panel { position: relative; overflow: hidden; padding: 22px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 24px; background: rgba(255, 255, 255, .96); color: #10213d; box-shadow: 0 28px 70px rgba(0, 0, 0, .28); backdrop-filter: blur(12px); }
.hero-apps-panel::before { content: ""; position: absolute; top: -90px; left: -70px; width: 190px; height: 190px; border-radius: 50%; background: rgba(11, 99, 206, .1); pointer-events: none; }
.hero-apps-heading { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 15px; border-bottom: 1px solid #e2e8f2; }
.hero-apps-heading span:first-child { display: block; color: #65738a; font-size: 12px; font-weight: 800; }
.hero-apps-heading h2 { margin: 2px 0 0; color: #10213d; font-size: 23px; line-height: 1.35; }
.hero-live-badge { display: inline-flex !important; align-items: center; gap: 7px; min-height: 30px; padding: 5px 10px; border-radius: 99px; background: #e8fff6; color: #087653 !important; font-size: 11px !important; font-weight: 900 !important; }
.hero-live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #13b981; box-shadow: 0 0 0 5px rgba(19, 185, 129, .13); }
.hero-apps-list { position: relative; display: grid; gap: 10px; }
.hero-app-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) 38px; align-items: center; gap: 12px; min-width: 0; padding: 10px; border: 1px solid #e5eaf2; border-radius: 15px; background: #fff; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.hero-app-item:hover { transform: translateX(-3px); border-color: #b9d6f7; box-shadow: 0 9px 24px rgba(13, 35, 67, .09); }
.hero-app-media { width: 58px; height: 58px; overflow: hidden; border-radius: 13px; background: #eaf3ff; }
.hero-app-media .post-thumbnail-image, .hero-app-media .post-thumbnail-placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.hero-app-media .post-thumbnail-placeholder svg { width: 24px; height: 24px; }
.hero-app-copy { min-width: 0; }
.hero-app-copy h3 { margin: 0; overflow: hidden; font-size: 14px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.hero-app-copy h3 a { color: #10213d; }
.hero-app-copy p { margin: 5px 0 0; color: #65738a; font-size: 11px; }
.hero-app-copy p span { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.hero-app-copy p svg { width: 13px; height: 13px; }
.hero-app-action { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #eaf3ff; color: #0b63ce; }
.hero-app-action:hover { background: #0b63ce; color: #fff; }

/* Categories */
.category-section { padding-top: 44px; }
.category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.category-card { position: relative; aspect-ratio: 1 / 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 18px 12px; overflow: hidden; text-align: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; box-shadow: var(--shadow-sm); color: var(--color-text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.category-card::before { content: ""; position: absolute; top: -38px; left: -38px; width: 90px; height: 90px; border-radius: 50%; background: var(--color-primary-soft); opacity: .75; transition: transform .2s ease; }
.category-card:hover { transform: translateY(-5px); border-color: #b8d4f7; box-shadow: var(--shadow-md); color: var(--color-text); }
.category-card:hover::before { transform: scale(1.18); }
.category-icon { position: relative; width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 16px; background: var(--color-primary-soft); color: var(--color-primary); }
.category-icon svg { width: 25px; height: 25px; }
.category-name { position: relative; max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 900; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.category-count { position: relative; color: var(--color-muted); font-size: 11px; }
.category-arrow { position: absolute; bottom: 10px; left: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--color-primary-soft); color: var(--color-primary); opacity: 0; transform: translateX(7px); transition: opacity .2s ease, transform .2s ease; }
.category-card:hover .category-arrow { opacity: 1; transform: none; }
.category-arrow svg { width: 14px; height: 14px; }

/* Latest applications */
.latest-apps-heading > p { max-width: 470px; margin: 0; color: var(--color-muted); font-size: 14px; }
.apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.app-card { min-width: 0; overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.app-card:hover { transform: translateY(-5px); border-color: #bdd6f6; box-shadow: var(--shadow-md); }
.app-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--color-primary-soft), var(--color-surface)); }
.app-card-media .post-thumbnail-image, .app-card-media .post-thumbnail-placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.app-card:hover .post-thumbnail-image { transform: scale(1.045); }
.app-card-type { position: absolute; top: 12px; right: 12px; display: inline-flex; min-height: 28px; align-items: center; padding: 4px 10px; border-radius: 99px; background: rgba(7, 26, 61, .86); color: #fff; font-size: 10px; font-weight: 900; backdrop-filter: blur(6px); }
.app-card-body { padding: 17px; }
.app-card-category { display: inline-flex; margin-bottom: 7px; color: var(--color-primary); font-size: 11px; font-weight: 900; }
.app-card-title { margin: 0; min-height: 52px; font-size: 17px; line-height: 1.55; }
.app-card-title a { color: var(--color-text); }
.app-card-device { display: flex; align-items: center; gap: 7px; min-width: 0; margin: 10px 0 0; color: var(--color-muted); font-size: 12px; }
.app-card-device svg { color: var(--color-primary); }
.app-card-device span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.app-card-updated { display: inline-flex; align-items: center; gap: 5px; color: var(--color-accent-strong); font-size: 10px; font-weight: 800; white-space: nowrap; }
.app-card-updated svg { width: 13px; height: 13px; }
.app-card-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 11px; border-radius: 11px; background: var(--color-primary); color: #fff; font-size: 11px; font-weight: 900; }
.app-card-button:hover { background: var(--color-primary-strong); color: #fff; }
.app-card-button svg { width: 14px; height: 14px; }

/* Cards */
.posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.posts-grid-two { grid-template-columns: repeat(2, 1fr); }
.post-card { min-width: 0; overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-primary-soft); }
.post-thumbnail-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-thumbnail-image { transform: scale(1.035); }
.post-thumbnail-placeholder { width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center; background: linear-gradient(135deg, var(--color-primary-soft), var(--color-surface)); color: var(--color-primary); }
.post-thumbnail-placeholder svg { width: 42px; height: 42px; opacity: .55; }
.category-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 99px; background: var(--color-primary); color: #fff; font-size: 11px; font-weight: 900; }
.category-badge:hover { background: var(--color-primary-strong); color: #fff; }
.post-card-media .category-badge { position: absolute; top: 12px; right: 12px; }
.post-card-body { padding: 18px; }
.post-card-title { margin: 0 0 10px; font-size: 17px; line-height: 1.55; }
.post-card-title a { color: var(--color-text); }
.post-card-excerpt { margin: 0; color: var(--color-muted); font-size: 13px; line-height: 1.8; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.meta-item { display: inline-flex; align-items: center; gap: 6px; color: var(--color-muted); font-size: 12px; }
.post-card-footer .text-link { font-size: 12px; }
.featured-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 520px; }
.featured-card { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--color-dark); }
.featured-card-main { grid-row: 1 / 3; }
.featured-card-media, .featured-card-media .post-thumbnail-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.featured-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2, 11, 27, .92), rgba(2, 11, 27, .02) 65%); }
.featured-card-content { position: absolute; z-index: 2; inset-inline: 20px; bottom: 18px; }
.featured-card-content h3 { margin: 10px 0 6px; font-size: 16px; line-height: 1.55; }
.featured-card-main .featured-card-content h3 { font-size: 27px; }
.featured-card-content h3 a { color: #fff; }
.featured-card-content .meta-item { color: #d9e5f8; }

/* Content layouts */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-block: 34px 70px; align-items: start; }
.content-column { min-width: 0; }
.sidebar-column { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.breadcrumbs { margin-bottom: 18px; }
.breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--color-muted); font-size: 13px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.breadcrumbs svg { width: 14px; height: 14px; opacity: .65; }
.breadcrumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 430px; }
.archive-header { margin-bottom: 24px; padding: 26px 28px; }
.archive-header h1 { margin: 0; font-size: clamp(27px, 4vw, 42px); line-height: 1.35; }
.archive-description, .archive-header > p { margin-top: 10px; color: var(--color-muted); }
.archive-description p { margin: 0; }
.archive-header .search-form { margin-top: 18px; }
.archive-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.archive-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 12px; border: 1px solid var(--color-border); border-radius: 99px; background: var(--color-surface); color: var(--color-text); font-size: 13px; font-weight: 800; }
.archive-chips a:hover { border-color: #b8d4f7; color: var(--color-primary); }
.archive-chips span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 5px; border-radius: 99px; background: var(--color-primary-soft); color: var(--color-primary); font-size: 11px; }

/* Sidebar */
.widget { padding: 22px; }
.widget-title { position: relative; margin: 0 0 18px; padding-bottom: 12px; font-size: 18px; }
.widget-title::after { content: ""; position: absolute; right: 0; bottom: 0; width: 42px; height: 3px; border-radius: 3px; background: var(--color-primary); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.category-list li + li { border-top: 1px solid var(--color-border); }
.category-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--color-text); font-size: 14px; font-weight: 700; }
.category-list b { display: grid; place-items: center; min-width: 30px; height: 26px; border-radius: 99px; background: var(--color-primary-soft); color: var(--color-primary); font-size: 11px; }
.compact-posts { display: flex; flex-direction: column; gap: 14px; }
.compact-post { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; }
.compact-post-media { width: 76px; height: 64px; overflow: hidden; border-radius: 10px; background: var(--color-primary-soft); }
.compact-post-media .post-thumbnail-placeholder { min-height: 64px; }
.compact-post h3 { margin: 0 0 4px; font-size: 13px; line-height: 1.55; }
.compact-post h3 a { color: var(--color-text); }

/* Pagination */
.pagination-nav { margin-top: 34px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.page-number { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding-inline: 10px; border: 1px solid var(--color-border); border-radius: 11px; background: var(--color-surface); color: var(--color-text); font-weight: 800; }
.page-number:hover, .page-number.current { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }

/* Single */
.single-article { overflow: hidden; }
.single-header { padding: 34px 38px 26px; text-align: center; }
.single-header .category-badge { margin-bottom: 14px; }
.single-header h1 { margin: 0; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.45; letter-spacing: -.02em; }
.single-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.single-featured-media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-primary-soft); }
.article-tabs { padding: 0 38px 38px; }
.tab-list { display: flex; gap: 8px; margin: 0 0 24px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.tab-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 15px; border: 1px solid var(--color-border); border-radius: 11px; background: var(--color-surface); color: var(--color-muted); font-weight: 800; cursor: pointer; }
.tab-button.is-active, .tab-button:hover { border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary); }
.js .tab-panel { display: none; }
.js .tab-panel.is-active { display: block; }
.entry-content { color: var(--color-text); font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.8em; margin-bottom: .7em; line-height: 1.5; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 23px; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content ul, .entry-content ol { padding-right: 24px; }
.entry-content img { border-radius: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content th, .entry-content td { border: 1px solid var(--color-border); padding: 10px 12px; }
.entry-content blockquote { margin: 24px 0; padding: 18px 22px; border-right: 4px solid var(--color-primary); background: var(--color-primary-soft); border-radius: 12px; }
.entry-content pre { overflow: auto; padding: 18px; border-radius: 12px; background: #091426; color: #e8eef8; direction: ltr; text-align: left; }
.download-cta { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: 38px; padding: 25px; border: 1px solid #bed8fa; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--color-primary-soft), var(--color-surface)); }
.download-cta h2 { margin: 0; font-size: 21px; }
.download-cta p { margin: 5px 0 0; color: var(--color-muted); font-size: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--color-border); }
.tag-list a { padding: 6px 11px; border-radius: 99px; background: var(--color-primary-soft); color: var(--color-primary); font-size: 12px; font-weight: 800; }
.related-section { margin-top: 42px; }
.comments-area { padding-top: 10px; }
.comments-title { font-size: 23px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { margin-bottom: 16px; padding: 18px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); }
.comment-meta { font-size: 13px; }
.comment-content { margin-top: 10px; }
.comment-respond { margin-top: 28px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 5px; font-weight: 800; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; border: 1px solid var(--color-border); border-radius: 11px; padding: 11px 13px; background: var(--color-surface); color: var(--color-text); }

/* Download */
.download-page { overflow: hidden; }
.download-header { display: flex; align-items: flex-start; gap: 22px; padding: 34px 38px; background: linear-gradient(135deg, var(--color-primary-soft), var(--color-surface)); border-bottom: 1px solid var(--color-border); }
.download-header-icon { width: 64px; height: 64px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 18px; background: var(--color-primary); color: #fff; box-shadow: 0 14px 28px rgba(11, 99, 206, .22); }
.download-header-icon svg { width: 30px; height: 30px; }
.download-header h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.45; }
.download-header p { margin: 10px 0 0; color: var(--color-muted); }
.download-summary { display: grid; grid-template-columns: 300px 1fr; gap: 26px; padding: 34px 38px; border-bottom: 1px solid var(--color-border); }
.download-thumb { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: var(--color-primary-soft); }
.download-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.download-fact { padding: 15px 16px; border: 1px solid var(--color-border); border-radius: 13px; background: var(--color-bg); }
.download-fact span { display: block; color: var(--color-muted); font-size: 12px; }
.download-fact strong { display: block; margin-top: 3px; color: var(--color-text); font-size: 15px; overflow-wrap: anywhere; }
.download-links-section { padding: 36px 38px; }
.download-links { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-inline: auto; }
.download-link { display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 14px; min-height: 78px; padding: 13px 18px; border: 1px solid #b9d5f7; border-radius: 15px; background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }
.download-link:hover { transform: translateY(-2px); border-color: var(--color-primary); color: var(--color-text); box-shadow: var(--shadow-md); }
.download-link-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--color-primary-soft); color: var(--color-primary); }
.download-link small { display: block; color: var(--color-muted); font-size: 11px; }
.download-link strong { display: block; font-size: 15px; }
.download-link-2 .download-link-icon { background: #e9fff6; color: var(--color-accent-strong); }
.download-link-3 .download-link-icon { background: #fff2e7; color: #c76500; }
.download-notes { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 38px; border-top: 1px solid var(--color-border); background: var(--color-bg); }
.download-notes > div { display: flex; align-items: flex-start; gap: 12px; color: var(--color-muted); font-size: 13px; }
.download-notes > div > svg { width: 28px; height: 28px; color: var(--color-accent-strong); }
.download-notes strong { display: block; color: var(--color-text); }
.notice { padding: 24px; border-radius: 14px; }
.notice-warning { border: 1px solid #f0d6ad; background: #fff8ec; color: #6e4a10; }
.dark-mode .notice-warning { background: #2d2417; color: #f1d3a0; border-color: #5d4726; }
.notice p { margin: 5px 0 0; }

/* Pages / empty / 404 */
.page-shell { padding-block: 34px 70px; }
.wide-page { max-width: var(--container); }
.page-article { max-width: 920px; margin-inline: auto; overflow: hidden; }
.page-header { padding: 32px 38px 24px; }
.page-header h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.page-article .entry-content { padding: 0 38px 38px; }
.empty-state, .not-found { padding: 50px 34px; text-align: center; }
.empty-state-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 20px; background: var(--color-primary-soft); color: var(--color-primary); }
.empty-state-icon svg { width: 32px; height: 32px; }
.empty-state h2, .not-found h1 { margin: 0; }
.empty-state p, .not-found p { max-width: 620px; margin: 10px auto 20px; color: var(--color-muted); }
.empty-state .search-form, .not-found .search-form { max-width: 620px; margin: 20px auto; }
.not-found-shell { padding-block: 34px 70px; }
.not-found-code { display: block; color: var(--color-primary); font-size: clamp(74px, 15vw, 150px); font-weight: 900; line-height: 1; opacity: .18; }
.all-posts-list { padding: 28px; }
.all-posts-list ol { margin: 0; padding-right: 24px; }
.all-posts-list li { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.all-posts-list li a { color: var(--color-text); font-weight: 700; }
.all-posts-list time { float: left; color: var(--color-muted); font-size: 12px; }
.seo-intro { display: flex; align-items: flex-start; gap: 20px; margin: 30px 0 70px; padding: 28px; }
.seo-intro-icon { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; background: #e9fff6; color: var(--color-accent-strong); }
.seo-intro-icon svg { width: 26px; height: 26px; }
.seo-intro h2 { margin: 0 0 6px; font-size: 22px; }
.seo-intro p { margin: 0; color: var(--color-muted); }

/* Ads */
.ad-slot { width: min(calc(100% - 32px), var(--container)); min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 22px auto; padding: 14px; border: 1px dashed #cfd8e6; border-radius: 14px; background: rgba(255, 255, 255, .45); overflow: hidden; text-align: center; }
.dark-mode .ad-slot { background: rgba(255, 255, 255, .03); border-color: #35445f; }
.ad-label { color: var(--color-muted); font-size: 10px; letter-spacing: .12em; }
.ad-content { max-width: 100%; }
.ad-content iframe, .ad-content ins { max-width: 100%; }
.content-column .ad-slot, .sidebar-column .ad-slot { width: 100%; margin: 0 0 22px; }

/* Footer */
.site-footer { margin-top: 0; background: #071326; color: #c5d1e5; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 34px; padding-block: 56px 42px; }
.site-footer .site-brand-name { color: #fff; }
.footer-brand p { max-width: 460px; margin: 18px 0 0; color: #9eacc2; font-size: 14px; }
.footer-widget-title { margin: 0 0 16px; color: #fff; font-size: 16px; }
.footer-navigation { min-width: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { position: relative; min-width: 0; }
.footer-menu > li { border-bottom: 1px solid rgba(174, 187, 208, .14); }
.footer-menu > li:last-child { border-bottom: 0; }
.footer-menu a { display: block; min-height: 42px; padding: 10px 0; color: #aebbd0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.footer-menu a:hover, .footer-menu a:focus-visible { color: #fff; }
.footer-accordion .menu-item-has-children > a, .footer-accordion .cat-parent > a { padding-inline-end: 42px; }
.footer-submenu-toggle { position: absolute; z-index: 2; inset-block-start: 4px; inset-inline-end: 0; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #263954; border-radius: 9px; background: rgba(255, 255, 255, .035); color: #c5d1e5; cursor: pointer; }
.footer-submenu-toggle:hover, .footer-submenu-toggle:focus-visible { border-color: #5c7daf; background: rgba(255, 255, 255, .08); color: #fff; }
.footer-submenu-toggle .icon { width: 17px; height: 17px; transition: transform .18s ease; }
.footer-submenu-open > .footer-submenu-toggle .icon { transform: rotate(90deg); }
.footer-accordion .sub-menu, .footer-accordion .children { margin: 0 12px 10px 0; padding: 4px 12px 4px 0; border-inline-start: 1px solid #263954; list-style: none; }
.footer-accordion .sub-menu a, .footer-accordion .children a { min-height: 34px; padding-block: 6px; color: #8f9fb7; font-size: 13px; }
.js .footer-accordion .sub-menu, .js .footer-accordion .children { display: none; }
.js .footer-accordion li.footer-submenu-open > .sub-menu, .js .footer-accordion li.footer-submenu-open > .children { display: block; }
.no-js .footer-accordion .sub-menu, .no-js .footer-accordion .children { display: block; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social-links a { padding: 6px 10px; border: 1px solid #263954; border-radius: 9px; color: #c5d1e5; font-size: 12px; }
.footer-bottom { border-top: 1px solid #20314c; }
.footer-bottom-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8f9db2; font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #cdd8ea; }

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

/* Games edition metadata and archive-card refinements. */
.post-card-system,
.compact-game-system {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
}
.post-card-system { margin: 0 0 10px; }
.post-card-system .icon { width: 15px; height: 15px; }
.compact-game-system { margin-top: 4px; color: var(--color-text-muted); font-size: 11px; }
.game-facts-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-primary-soft);
}
.game-facts-strip > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--color-surface);
}
.game-facts-strip span,
.game-facts-strip strong { display: block; }
.game-facts-strip span { margin-bottom: 4px; color: var(--color-text-muted); font-size: 11px; }
.game-facts-strip strong { overflow-wrap: anywhere; color: var(--color-heading); font-size: 14px; }
.sidebar-tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.sidebar-tag-list a { margin: 0; }
