/* Yonolook front-end styles — mobile first */

:root {
  --yl-bg: #ffffff;
  --yl-text: #272626;
  --yl-link: #2f5aae;
  --yl-cta: #009132;
  --yl-cta-hover: #007a29;
  --yl-featured: #fafad2;
  --yl-star: #f5a623;
  --yl-muted: #6b6b6b;
  --yl-border: #e6e6e6;
  --yl-soft: #f7f7f7;
  --yl-max: 1170px;
  --yl-radius: 8px;
  --yl-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --yl-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--yl-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--yl-text);
  background: var(--yl-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 10px 14px;
  background: #000;
  color: #fff;
}

.site-container {
  width: min(100% - 1.5rem, var(--yl-max));
  margin-inline: auto;
}

.site-main {
  padding-block: 1rem 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--yl-radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--cta,
.btn--download,
.btn--primary {
  background: var(--yl-cta);
  color: #fff !important;
}

.btn--cta:hover,
.btn--download:hover,
.btn--primary:hover {
  background: var(--yl-cta-hover);
}

.btn--ghost {
  background: transparent;
  border-color: var(--yl-border);
  color: var(--yl-text) !important;
}

.btn--sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* Featured bar (site-wide optional strip) */
.featured-bar {
  background: var(--yl-featured);
  color: var(--yl-text);
  font-size: 0.9rem;
  padding: 0.55rem 0;
  text-align: center;
}

/* Homepage Featured App — reference yellow recommendation strip */
.featured-app-bar {
  width: 100%;
  background: #fafad2;
  padding: 1rem 0 1.1rem;
  margin: 0;
}

.featured-app-bar__inner {
  width: min(100% - 1.5rem, var(--yl-max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.featured-app-bar__label {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
  color: var(--yl-text);
  line-height: 1.3;
}

.featured-app-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none !important;
  min-width: 0;
  max-width: 100%;
}

.featured-app-bar__thumb {
  flex-shrink: 0;
  display: block;
  width: 80px;
  height: 80px;
}

.featured-app-bar__icon {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.featured-app-bar__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.featured-app-bar__name {
  color: var(--yl-cta);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
}

.featured-app-bar__intro {
  color: var(--yl-cta);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-app-bar__link:hover .featured-app-bar__name,
.featured-app-bar__link:focus-visible .featured-app-bar__name,
.featured-app-bar__link:hover .featured-app-bar__intro,
.featured-app-bar__link:focus-visible .featured-app-bar__intro {
  text-decoration: underline;
}

/* Header — match PlayYonoGames desktop chrome (~66px white bar) */
.site-header {
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.45rem 0;
  min-height: 66px;
}

.site-branding {
  flex: 0 0 auto;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #272626;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none !important;
}

.site-title__text {
  letter-spacing: 0;
  white-space: nowrap;
}

.site-logo-fallback {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-logo {
  width: 30px;
  height: 30px;
  max-height: 30px;
  object-fit: contain;
}

.primary-nav {
  display: none;
  flex: 1;
  min-width: 0;
}

.primary-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu > li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.primary-menu > li > a {
  color: #272626;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none !important;
  display: inline-block;
  padding: 0.55rem 0;
  white-space: nowrap;
}

.primary-menu > li > a:hover,
.primary-menu > li > a:focus-visible,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a {
  color: var(--yl-link);
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.primary-menu .submenu-toggle {
  display: none;
}

.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 120;
}

.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu,
.primary-menu .menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.primary-menu .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 14px;
  color: #272626;
  white-space: nowrap;
  text-decoration: none !important;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible {
  background: #f7f7f7;
  color: var(--yl-link);
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.header-search-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--yl-border);
  border-radius: var(--yl-radius);
  background: #fff;
  color: var(--yl-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: min(90vw, 280px);
  background: #fff;
  border: 1px solid var(--yl-border);
  border-radius: 8px;
  padding: 0.65rem;
  box-shadow: var(--yl-shadow);
  z-index: 130;
}

.header-search-panel .yonolook-search-form {
  margin: 0;
}

.site-header__actions .header-cta {
  display: none;
}

.mobile-nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--yl-border);
  border-radius: var(--yl-radius);
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: var(--yl-text);
  display: block;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
}

.mobile-nav__panel {
  width: min(86vw, 320px);
  height: 100%;
  background: #fff;
  margin-left: auto;
  padding: 1rem;
  box-shadow: var(--yl-shadow);
  overflow: auto;
  animation: yl-slide-in 0.25s ease;
}

@keyframes yl-slide-in {
  from { transform: translateX(12px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

.mobile-nav__close {
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  float: right;
}

.mobile-menu {
  list-style: none;
  margin: 2rem 0 1rem;
  padding: 0;
  clear: both;
}

.mobile-menu a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--yl-border);
  color: var(--yl-text);
  font-weight: 600;
  text-decoration: none !important;
}

.mobile-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.85rem;
  display: none;
}

.mobile-menu .menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.mobile-menu .sub-menu a {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--yl-muted);
}

.mobile-menu .submenu-toggle {
  float: right;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

/* Search */
.yonolook-search-form {
  display: flex;
  gap: 0.35rem;
  margin: 1rem 0;
}

.yonolook-search-form__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--yl-border);
  border-radius: var(--yl-radius);
  padding: 0.55rem 0.75rem;
  font: inherit;
}

.yonolook-search-form__submit {
  border: 0;
  border-radius: var(--yl-radius);
  background: var(--yl-link);
  color: #fff;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.age-gate__dialog {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--yl-shadow);
  animation: yl-fade-up 0.3s ease;
}

@keyframes yl-fade-up {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Sections */
.section-title {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.section-link {
  font-weight: 600;
  white-space: nowrap;
}

.front-page {
  padding-bottom: 1.5rem;
}

.front-page__slot {
  margin-block: 1.25rem;
}

.front-page__slot--hero {
  margin-top: 0.75rem;
  margin-bottom: 0.85rem;
}

.front-page__slot--intro {
  margin-top: 0;
  padding-top: 20px;
}

.front-page__slot--apps-grid {
  margin-top: 1.75rem;
}

.text-center {
  text-align: center;
}

/* Reference (playyonogames): centered H1 21→40px / weight 700 / mb 30px;
   left-aligned body 13.5→16px / lh ~1.7 / para gap 3px. */
.home-intro__title {
  font-size: 1.3125rem; /* 21px mobile */
  line-height: 1.2;
  margin: 0 0 30px;
  letter-spacing: 0;
  font-weight: 700;
  color: #272626;
}

.home-intro__body {
  color: #272626;
  font-size: 0.84375rem; /* 13.5px mobile */
  line-height: 1.6;
  text-align: left;
  max-width: none;
  margin: 0;
}

.home-intro__body p,
.home-intro__lead,
.home-intro__desc {
  margin: 0 0 3px;
}

.home-intro__body p:last-child,
.home-intro__desc:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .home-intro__title {
    font-size: 2rem; /* 32px */
    line-height: 1.1;
  }

  .home-intro__body {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.6;
  }
}

@media (min-width: 1100px) {
  .home-intro__title {
    font-size: 2.5rem; /* 40px */
    line-height: 1.1;
  }

  .home-intro__body {
    font-size: 1rem; /* 16px */
    line-height: 1.7;
  }
}

/* Hero banner — real <img>, preserve ratio (ref ~780×285 ≈ 2.74:1) */
.home-hero {
  margin: 0.75rem 0 0;
  padding: 0;
  background: transparent;
}

.home-hero__figure {
  margin: 0;
  width: 100%;
  line-height: 0;
}

.home-hero__banner {
  width: 100%;
  height: auto; /* preserve intrinsic ratio — never stretch */
  max-width: 100%;
  display: block;
  object-fit: contain;
  margin-inline: auto;
}

@media (max-width: 639px) {
  .home-hero {
    margin-top: 0.5rem;
  }

  .featured-app-bar {
    padding: 0.85rem 0 1rem;
  }

  .featured-app-bar__thumb,
  .featured-app-bar__icon {
    width: 64px;
    height: 64px;
  }

  .featured-app-bar__name {
    font-size: 0.98rem;
  }

  .featured-app-bar__intro {
    font-size: 0.9rem;
  }
}

/*
 * App grid / cards — playyonogames posts-wrapper
 * Mobile (<576): 1 col, title 20px
 * Tablet (≥576): 2 col, title 22px
 * Desktop (≥992): 3 col, title 24px
 * Icon always 145×145; card pad 15px; mb 30px
 */
.front-page__slot--apps-grid.site-container {
  /* Edge inset comes from card padding (15px), like reference .col articles. */
  width: 100%;
  max-width: var(--yl-max);
  padding-inline: 0;
  box-sizing: border-box;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.app-grid--home,
.posts-wrapper.app-grid--home,
.home-apps-grid .posts-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.app-grid--home > .app-card,
.posts-wrapper.app-grid--home > .app-card,
.home-apps-grid .app-card {
  flex: 0 1 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 0 15px;
  margin: 0 0 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.app-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.app-card__thumb {
  display: block;
  text-decoration: none !important;
  line-height: 0;
  flex: 0 0 auto;
}

.app-card__title-link {
  display: block;
  width: 100%;
  max-width: 100%;
  color: inherit;
  text-decoration: none !important;
  min-width: 0;
}

.app-card__icon,
.app-header__icon,
.featured-app-bar__icon {
  object-fit: contain;
}

.app-card__icon {
  width: 145px;
  height: 145px !important; /* override global img { height:auto } */
  max-width: min(145px, 100%);
  max-height: 145px;
  border-radius: 0;
  object-fit: contain; /* keep proportions; no stretch */
  object-position: center;
  background: transparent;
  margin: 0 auto;
  display: block;
  flex: 0 0 auto;
}

.app-card__title {
  margin: 0;
  font-size: 1.25rem; /* 20px mobile */
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #272626;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: manual;
  max-width: 100%;
}

.app-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.app-card__excerpt {
  margin: 2px 0 0;
  color: #272626;
  font-size: 0.875rem; /* 14px mobile */
  text-align: center;
  max-width: 100%;
  width: 100%;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-card__excerpt p {
  margin: 0;
}

.app-card__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.35rem;
  width: 100%;
}

.app-card__rating-num {
  font-weight: 700;
  font-size: 0.95rem;
  color: #272626;
  line-height: 1;
}

.app-card__more {
  display: inline;
  color: var(--yl-link);
  font-weight: 600;
  white-space: normal;
}

.btn--block {
  width: 100%;
  display: inline-flex;
}

.yonolook-stars {
  color: var(--yl-star);
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.star--empty {
  opacity: 0.45;
}

.star--half {
  opacity: 0.85;
}

/* Category pills — reference .category-pills */
.home-categories {
  margin-top: 0.5rem;
}

.home-categories__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.home-categories__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1rem;
}

.category-pill {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  color: var(--yl-link);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
}

.category-pill:hover,
.category-pill:focus-visible {
  border-color: var(--yl-link);
  background: #fff;
}

.home-categories__blurb {
  color: #555;
  line-height: 1.65;
  margin: 0.5rem 0 0;
}

.home-bottom-disclaimer__text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
}

.category-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.category-tags__link {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--yl-border);
  border-radius: 4px;
  color: var(--yl-link);
  text-decoration: none !important;
  background: #fafafa;
  font-weight: 600;
  font-size: 0.9rem;
}

.category-tags__link:hover,
.category-tags__link:focus-visible {
  border-color: var(--yl-link);
  color: var(--yl-link);
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.category-list__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--yl-border);
  border-radius: var(--yl-radius);
  color: var(--yl-text);
  text-decoration: none !important;
  background: #fff;
}

.category-list__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--yl-soft);
  border-radius: 10px;
}

.category-list__name {
  font-weight: 700;
  flex: 1;
}

.category-list__count {
  color: var(--yl-muted);
  font-size: 0.85rem;
}

/* FAQ — ez-toc style card + bordered accordion (7 items) */
.home-faq {
  margin-top: 1.25rem;
  max-width: 100%;
}

.home-faq__toc {
  display: table; /* match ez-toc shrink-to-content on desktop */
  width: auto;
  max-width: 100%;
  border: 1px solid #aaa;
  background: #f9f9f9;
  padding: 10px 20px 10px 10px;
  margin: 0 0 1.25rem;
  border-radius: 4px;
  box-sizing: border-box;
}

.home-faq__toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.35rem;
}

.home-faq__toc-title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: #272626;
}

.home-faq__toc-toggle {
  appearance: none;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 3px;
  width: 28px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #999;
  flex: 0 0 auto;
}

.home-faq__toc-toggle-icon::before {
  content: "☰";
  font-size: 12px;
  line-height: 1;
}

.home-faq__toc.is-collapsed .home-faq__toc-list {
  display: none;
}

.home-faq__toc-list {
  margin: 0;
  padding-left: 1.35rem;
}

.home-faq__toc-list li {
  margin: 0.2rem 0;
  line-height: 1.45;
}

.home-faq__toc-list a {
  color: var(--yl-link);
  text-decoration: none;
}

.home-faq__toc-list a:hover {
  text-decoration: underline;
}

.home-faq__list {
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.home-faq__item,
.home-faq .faq-item {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e2e2e2;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
}

.home-faq__item:last-child,
.home-faq .faq-item:last-child {
  border-bottom: 0;
}

.home-faq__question,
.home-faq .faq-item__question {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  color: #272626;
  list-style: none;
  user-select: none;
}

.home-faq__question::-webkit-details-marker,
.home-faq .faq-item__question::-webkit-details-marker {
  display: none;
}

.home-faq__question-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-faq__chevron {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.35rem;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.home-faq__item[open] > .home-faq__question .home-faq__chevron,
.home-faq .faq-item[open] > .faq-item__question .home-faq__chevron {
  transform: rotate(225deg);
  margin-top: 0.55rem;
}

.home-faq__answer,
.home-faq .faq-item__answer {
  margin: 0;
  padding: 0 1rem 1rem;
  color: #272626;
  font-size: 1rem;
  line-height: 1.7;
}

.home-faq__answer p {
  margin: 0;
}

@media (max-width: 575.98px) {
  .home-faq__toc {
    display: block;
    width: 100%;
    padding: 10px 12px;
  }

  .home-faq__question,
  .home-faq .faq-item__question {
    font-size: 1rem;
    padding: 0.85rem 0.85rem;
  }

  .home-faq__answer,
  .home-faq .faq-item__answer {
    padding: 0 0.85rem 0.9rem;
    font-size: 0.95rem;
  }
}

/* Legacy accordion (single app pages) */
.faq-accordion {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--yl-border);
  border-radius: 10px;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.faq-item__question {
  cursor: pointer;
  padding: 0.95rem 1rem;
  font-weight: 700;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__answer {
  padding: 0 1rem 1rem;
  color: var(--yl-muted);
}

/* Info cards */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.info-card {
  border: 1px solid var(--yl-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.info-card__link {
  display: block;
  color: inherit;
  text-decoration: none !important;
  padding: 0 0 1rem;
}

.info-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--yl-soft);
}

.info-card__title {
  margin: 0.85rem 1rem 0.35rem;
  font-size: 1.05rem;
}

.info-card__excerpt {
  margin: 0 1rem;
  color: var(--yl-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-bottom-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 0 0.25rem;
}

.home-bottom-disclaimer__text {
  margin: 0;
  color: var(--yl-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--yl-muted);
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: #bbb;
}

/* Single app — centered title, large icon, specs table */
.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.app-header__icon-wrap {
  display: flex;
  justify-content: center;
}

.app-header__icon {
  width: 160px;
  height: 160px;
  border-radius: 28px;
  object-fit: contain;
  /* Soft letterbox behind a real <img> only — never an empty colored block without media. */
  background: var(--yl-soft);
}

.app-header__title {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.app-specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--yl-border);
}

.app-specs-table th,
.app-specs-table td {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--yl-border);
  vertical-align: top;
}

.app-specs-table thead th {
  background: var(--yl-soft);
  font-weight: 700;
  text-align: center;
}

.app-specs-table tbody th {
  width: 42%;
  font-weight: 600;
  background: #fafafa;
}

.app-header__cta {
  margin: 0.25rem 0 0;
  width: 100%;
}

.app-header__cta .btn--download {
  padding: 0.95rem 1.25rem;
  font-size: 1.05rem;
  border-radius: 6px;
}

.app-header__desc {
  margin: 0.35rem 0 0;
  color: var(--yl-text);
  text-align: left;
  width: 100%;
  line-height: 1.65;
}

.app-header__disclaimer {
  font-size: 0.8rem;
  color: var(--yl-muted);
  margin: 0.15rem 0 0;
  text-align: left;
  width: 100%;
}

.app-single > section {
  margin-block: 1.75rem;
}

.feature-list,
.install-steps {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-list li,
.install-steps li {
  margin-bottom: 0.4rem;
}

.screenshot-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 180px);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}

.screenshot-gallery__item {
  margin: 0;
  scroll-snap-align: start;
}

.screenshot-gallery img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--yl-border);
  background: var(--yl-soft);
}

.app-specs {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.app-specs th,
.app-specs td {
  border: 1px solid var(--yl-border);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.app-specs th {
  width: 38%;
  background: var(--yl-soft);
  font-weight: 700;
}

.app-info__download {
  margin-top: 1rem;
}

.pros-cons-grid {
  display: grid;
  gap: 0.85rem;
}

.pros-box,
.cons-box {
  border: 1px solid var(--yl-border);
  border-radius: var(--yl-radius);
  padding: 1rem;
  background: #fff;
}

.pros-box h3 {
  color: var(--yl-cta);
  margin-top: 0;
}

.cons-box h3 {
  color: #b42318;
  margin-top: 0;
}

/* Layout helpers */
.content-layout {
  display: grid;
  gap: 1.5rem;
}

.archive-header {
  margin-bottom: 1.25rem;
}

.archive-title {
  margin: 0 0 0.35rem;
}

.archive-description {
  margin: 0;
  color: var(--yl-muted);
}

.empty-apps-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 1rem;
  text-align: center;
}

.empty-apps-state__image {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.empty-apps-state__message {
  margin: 0;
  color: var(--yl-muted);
  font-size: 1rem;
}

.pagination .page-numbers {
  display: inline-flex;
  list-style: none;
  gap: 0.35rem;
  padding: 0;
  margin: 1.5rem 0 0;
  flex-wrap: wrap;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--yl-border);
  border-radius: 6px;
}

.pagination .page-numbers .current {
  background: var(--yl-link);
  color: #fff;
  border-color: var(--yl-link);
}

/* Footer — reference light single-line copyright */
.site-footer {
  background: #fff;
  color: #555;
  padding: 1.25rem 0 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--yl-border);
}

.site-footer a {
  color: var(--yl-link);
}

.site-footer__grid {
  display: none;
}

.site-footer__brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--yl-text) !important;
  text-decoration: none !important;
}

.site-footer__heading {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 0.35rem;
}

.friend-links {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--yl-border);
}

.friend-links__group {
  margin-bottom: 1.1rem;
}

.friend-links__group:last-child {
  margin-bottom: 0;
}

.friend-links__title {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.friend-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.friend-links__list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 16rem;
}

.friend-links__desc {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--yl-muted);
}

.site-footer__bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  color: #555;
  font-size: 0.92rem;
}

.site-footer__copyright {
  margin: 0;
  text-align: center;
}

.error-404__inner {
  text-align: center;
  padding: 2rem 0;
}

.error-404__title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-card {
  border-bottom: 1px solid var(--yl-border);
  padding: 1rem 0;
}

/* Desktop */
@media (min-width: 768px) {
  .primary-nav {
    display: block;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .info-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-header__icon {
    width: 200px;
    height: 200px;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* Tablet: 2 equal columns (reference ≥576) */
@media (min-width: 576px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-grid--home > .app-card,
  .posts-wrapper.app-grid--home > .app-card,
  .home-apps-grid .app-card {
    flex: 0 1 50%;
    width: 50%;
    max-width: 50%;
  }

  .app-card__title {
    font-size: 1.375rem; /* 22px */
    line-height: 1.3;
  }

  .app-card__excerpt {
    font-size: 0.9375rem; /* 15px */
  }

  .app-card__icon {
    width: 145px;
    height: 145px;
  }
}

/* Desktop: 3 equal columns (reference ≥992) */
@media (min-width: 992px) {
  .app-grid,
  .app-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-grid--home > .app-card,
  .posts-wrapper.app-grid--home > .app-card,
  .home-apps-grid .app-card {
    flex: 0 1 33.333333%;
    width: 33.333333%;
    max-width: 33.333333%;
  }

  .app-card__title {
    font-size: 1.5rem; /* 24px */
    line-height: 1.25;
  }

  .app-card__excerpt {
    font-size: 0.9375rem;
  }

  .app-card__icon {
    width: 145px;
    height: 145px;
  }

  .category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .primary-nav {
    display: block;
  }

  .mobile-nav-toggle {
    display: none;
  }
}
