:root {
  --ash-primary: #2563eb;
  --ash-primary-hover: #1d4ed8;
  --ash-text: #334155;
  --ash-heading: #172033;
  --ash-border: #e2e8f0;
  --ash-surface-soft: #f1f5f9;
  --ash-surface: #ffffff;
  --ash-success: #15803d;
  --ash-radius: 16px;
}

.ash-shell { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.ash-page { padding: clamp(44px, 7vw, 88px) 0; }
.ash-page-header { max-width: 780px; margin-bottom: 36px; }
.ash-page-header h1 { margin: 4px 0 12px; }
.ash-page-header p { font-size: 1.08rem; }
.ash-eyebrow { margin: 0; color: var(--ash-primary); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.ash-catalog__controls { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, .42fr) minmax(190px, .42fr) auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.ash-control input[type="search"], .ash-control select { width: 100%; min-height: 50px; border: 1px solid var(--ash-border); border-radius: 12px; background: var(--ash-surface); color: var(--ash-heading); padding: 0 15px; box-shadow: none; }
.ash-control input[type="search"]:focus, .ash-control select:focus { outline: 3px solid rgb(37 99 235 / 14%); border-color: var(--ash-primary); }
.ash-control--check { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 14px; border: 1px solid var(--ash-border); border-radius: 12px; background: var(--ash-surface); white-space: nowrap; }
.ash-control--check input { width: 18px; height: 18px; }
.ash-catalog__summary { color: #64748b; margin: 0 0 18px; }
.ash-catalog__empty, .ash-empty-note { padding: 28px; border: 1px dashed var(--ash-border); border-radius: var(--ash-radius); text-align: center; color: #64748b; background: var(--ash-surface); }

.ash-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ash-app-card { display: flex; flex-direction: column; min-width: 0; min-height: 290px; padding: 22px; border: 1px solid var(--ash-border); border-radius: var(--ash-radius); background: var(--ash-surface); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ash-app-card:hover { transform: translateY(-2px); border-color: #cbd5e1; box-shadow: 0 16px 38px rgb(15 23 42 / 7%); }
.ash-app-card[hidden] { display: none !important; }
.ash-app-card__top { display: flex; gap: 15px; align-items: flex-start; }
.ash-app-card__logo { flex: 0 0 60px; width: 60px; height: 60px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, #e0e7ff, #dbeafe); color: var(--ash-primary); font-size: 1.12rem; font-weight: 800; text-decoration: none; }
.ash-app-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; background: #fff; }
.ash-app-card__heading { min-width: 0; }
.ash-app-card h3 { font-size: 1.2rem; margin: 2px 0 7px; }
.ash-app-card h3 a { color: var(--ash-heading); text-decoration: none; }
.ash-app-card h3 a:hover { color: var(--ash-primary); }
.ash-app-card__badges, .ash-app-card__terms { display: flex; flex-wrap: wrap; gap: 6px; }
.ash-badge, .ash-app-card__terms span { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; background: var(--ash-surface-soft); color: #475569; font-size: .74rem; font-weight: 700; }
.ash-badge--verified { background: #dcfce7; color: var(--ash-success); }
.ash-app-card__description { margin: 18px 0 16px; color: #526074; line-height: 1.6; }
.ash-app-card__terms { margin-top: auto; }
.ash-app-card__platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ash-app-card__platforms span,
.ash-platform-list span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .74rem;
  font-weight: 750;
}
.ash-sidebar-taxonomy { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ash-border); }
.ash-sidebar-taxonomy h3 { margin: 0 0 10px; font-size: .9rem; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.ash-platform-list { display: flex; flex-wrap: wrap; gap: 7px; }
.ash-app-card__footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ash-border); }
.ash-app-card__stats { display: flex; gap: 11px; color: #64748b; font-size: .82rem; }
.ash-text-link { color: var(--ash-primary); font-weight: 700; text-decoration: none; }
.ash-text-link:hover { color: var(--ash-primary-hover); }

.ash-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ash-guide-card { overflow: hidden; border: 1px solid var(--ash-border); border-radius: var(--ash-radius); background: var(--ash-surface); }
.ash-guide-card__media { display: block; aspect-ratio: 16 / 9; background: var(--ash-surface-soft); overflow: hidden; }
.ash-guide-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ash-guide-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #64748b; font-weight: 700; }
.ash-guide-card__body { padding: 21px; }
.ash-guide-card__meta { margin-bottom: 8px; color: #64748b; font-size: .8rem; }
.ash-guide-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.ash-guide-card h3 a { color: var(--ash-heading); text-decoration: none; }
.ash-guide-card p { margin: 0; color: #64748b; }

.ash-app-hero { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(26px, 5vw, 52px); border: 1px solid var(--ash-border); border-radius: 24px; background: linear-gradient(135deg, #fff 15%, #eff6ff); }
.ash-app-hero__logo { width: 128px; height: 128px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--ash-border); border-radius: 28px; background: #fff; color: var(--ash-primary); font-size: 2rem; font-weight: 800; box-shadow: 0 18px 40px rgb(15 23 42 / 8%); }
.ash-app-hero__logo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.ash-app-hero h1 { margin: 8px 0 10px; }
.ash-app-hero__lead { max-width: 780px; margin: 0; color: #526074; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.ash-app-hero__badges, .ash-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ash-app-actions { margin-top: 22px; }
.ash-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--ash-primary); border-radius: 11px; background: var(--ash-primary); color: #fff !important; font-weight: 750; text-decoration: none; }
.ash-button:hover { background: var(--ash-primary-hover); border-color: var(--ash-primary-hover); }
.ash-button--secondary { background: #fff; color: var(--ash-heading) !important; border-color: var(--ash-border); }
.ash-button--secondary:hover { background: var(--ash-surface-soft); border-color: #cbd5e1; }
.ash-app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; margin-top: 34px; }
.ash-app-main { min-width: 0; }
.ash-prose { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--ash-border); border-radius: 20px; background: #fff; }
.ash-prose > :first-child { margin-top: 0; }
.ash-app-sidebar { position: sticky; top: 24px; padding: 24px; border: 1px solid var(--ash-border); border-radius: 18px; background: #fff; }
.ash-app-sidebar h2 { font-size: 1.22rem; margin: 0 0 14px; }
.ash-facts { margin: 0; }
.ash-facts > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--ash-border); }
.ash-facts dt { color: #64748b; }
.ash-facts dd { margin: 0; color: var(--ash-heading); font-weight: 700; text-align: right; }
.ash-feature-list { display: grid; gap: 8px; margin-top: 18px; color: var(--ash-success); font-weight: 700; }
.ash-related-guides { margin-top: 44px; }
.ash-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 20px; }
.ash-section-heading h2 { margin: 5px 0 0; }

@media (max-width: 980px) {
  .ash-catalog__controls { grid-template-columns: 1fr 1fr; }
  .ash-app-grid, .ash-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ash-app-layout { grid-template-columns: 1fr; }
  .ash-app-sidebar { position: static; }
}

@media (max-width: 640px) {
  .ash-shell { width: min(100% - 28px, 1280px); }
  .ash-page { padding: 36px 0 56px; }
  .ash-catalog__controls { grid-template-columns: 1fr; }
  .ash-app-grid, .ash-guide-grid { grid-template-columns: 1fr; }
  .ash-app-card { min-height: 0; padding: 18px; }
  .ash-app-hero { grid-template-columns: 1fr; padding: 24px; }
  .ash-app-hero__logo { width: 92px; height: 92px; border-radius: 21px; }
  .ash-app-actions > * { width: 100%; }
  .ash-app-card__footer { align-items: flex-end; }
}
