@font-face {
  font-family: "Barlow Condensed";
  src: url("barlow-condensed-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.af-sim {
  --sim-bg: #101114;
  --sim-surface: #191b20;
  --sim-line: #363840;
  --sim-text: #f5f2ee;
  --sim-muted: #b8bac3;
  --sim-accent: #ff9165;
  --sim-active: #3a251f;
  --sim-cta: #ff8859;
  --sim-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  background: var(--sim-bg);
  color: var(--sim-text);
  color-scheme: dark;
  padding: 1.15rem 0 clamp(3rem, 7vw, 6rem);
}

.af-sim[data-theme="light"] {
  --sim-bg: #f6f5f3;
  --sim-surface: #fff;
  --sim-line: #d7d2cf;
  --sim-text: #222126;
  --sim-muted: #54525c;
  --sim-accent: #a63a16;
  --sim-active: #fce5dc;
  color-scheme: light;
}

.af-sim [hidden] { display: none !important; }
.af-sim :focus-visible { outline: 2px solid var(--sim-accent); outline-offset: 4px; }

.af-sim-shell {
  width: min(81rem, calc(100% - clamp(2rem, 7vw, 7rem)));
  margin-inline: auto;
}

.af-sim-toolbar,
.af-sim-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
}

.af-sim-toolbar { margin-bottom: 1rem; }
.af-sim-crumbs { display: flex; flex-wrap: wrap; gap: .25rem .55rem; font-size: .875rem; color: var(--sim-muted); }
.af-sim-crumbs a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.af-sim-crumbs [aria-current] { color: var(--sim-text); }

.af-sim-theme,
.af-sim-filters button {
  min-height: 2.75rem;
  padding: .5rem .85rem;
  border: 1px solid var(--sim-line);
  border-radius: .45rem;
  background: var(--sim-surface);
  color: var(--sim-muted);
  font-size: .875rem;
  font-weight: 650;
}

.af-sim-theme {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.af-sim-theme-icon {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: var(--sim-accent);
}

.af-sim-theme-icon::after {
  content: "";
  width: 50%;
  height: 100%;
  justify-self: end;
  border-radius: 0 1rem 1rem 0;
  background: currentColor;
}

.af-sim-theme:hover,
.af-sim-filters button:hover {
  border-color: var(--sim-accent);
  color: var(--sim-text);
}

.af-sim-hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(24rem, 32vw, 30rem);
  overflow: hidden;
  border: 1px solid #494040;
  border-radius: .9rem;
  background: #16171a;
  color: #fff1e9;
}

.af-sim-hero::before,
.af-sim-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.af-sim-hero::before {
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #151517 3%, #151517f5 24%, #17161977 53%, transparent 76%),
    linear-gradient(0deg, #151517b0, transparent 40%);
}

.af-sim-hero::after {
  inset: auto 0 0;
  height: 2px;
  opacity: .8;
  background: linear-gradient(90deg, #ff8859, #994831 37%, transparent 85%);
}

.af-sim-hero-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 11%;
}

.af-sim-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.af-sim-hero-content { padding: clamp(1.35rem, 5vw, 4.5rem); }

.af-sim-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .45rem;
  color: #ffad86;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.af-sim-kicker::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: currentColor;
}

body.af-simulators-page .af-sim h1,
body.af-simulators-page .af-sim h2,
body.af-simulators-page .af-sim h3 {
  color: var(--sim-text) !important;
  font-family: var(--sim-display);
  font-weight: 700;
}

body.af-simulators-page .af-sim .af-sim-hero h1 {
  margin: 0 0 1rem;
  color: #fff6f1 !important;
  font-size: clamp(3.2rem, 7.6vw, 7rem);
  line-height: .96;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.af-sim-hero h1 em { color: #ff9267; font-style: normal; }

.af-sim-lede {
  max-width: 32ch;
  margin: 0 0 1.6rem;
  color: #f4e3db;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.5;
}

.af-sim-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  padding: .65rem 1.15rem;
  border-radius: .4rem;
  background: var(--sim-cta);
  color: #24120c;
  font-size: .925rem;
  font-weight: 750;
  text-decoration: none;
}

.af-sim-hero .af-sim-cta:focus-visible { outline-color: #ffab84; }
.af-sim-cta:hover { background: #ffae8c; color: #24120c; }

.af-sim-catalog {
  margin-top: clamp(2rem, 5vw, 4rem);
  scroll-margin-top: 5rem;
}

.af-sim-section-head {
  align-items: end;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sim-line);
}

.af-sim-section-head h2,
.af-sim-unavailable h1 {
  margin: 0 0 .4rem;
  font-size: clamp(2.15rem, 3.8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.af-sim-section-head p {
  margin: 0;
  color: var(--sim-muted);
  line-height: 1.55;
}

.af-sim-section-head .af-sim-count {
  padding: .1rem 0 .15rem;
  color: var(--sim-accent);
  font: 700 .9rem/1.3 system-ui, sans-serif;
  white-space: nowrap;
}

.af-sim-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.af-sim-filters button[aria-pressed="true"] { border-color: var(--sim-accent); background: var(--sim-active); color: var(--sim-accent); }

.af-sim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 1.7vw, 1.35rem);
  margin-top: 1.2rem;
}

.af-sim-card {
  overflow: hidden;
  border: 1px solid var(--sim-line);
  border-radius: .7rem;
  background: var(--sim-surface);
}

.af-sim-card-media {
  position: relative;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  background: #262328;
}

.af-sim-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.af-sim-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #100e12a3, transparent 43%);
  pointer-events: none;
}

.af-sim-status {
  position: absolute;
  z-index: 1;
  top: .75rem;
  right: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .33rem .62rem;
  border: 1px solid #9a6b55;
  border-radius: .3rem;
  background: #211b1a;
  color: #ffccad;
  font-size: .875rem;
  font-weight: 700;
}

.af-sim-status::before { content: ""; width: .43rem; height: .43rem; border-radius: 50%; background: #ff9a68; }
.af-sim-status-ready { border-color: #698064; background: #1c231c; color: #d3efc8; }
.af-sim-status-ready::before { background: #a4d5ac; }

.af-sim-card-body { padding: 1rem 1.15rem 1.2rem; }
.af-sim-card-category {
  margin: 0 0 .35rem;
  color: var(--sim-accent);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.af-sim-card h3 {
  margin: 0 0 .5rem;
  font-size: clamp(1.7rem, 2.35vw, 2.05rem);
  line-height: 1.05;
}

.af-sim-card-description { margin: 0; color: var(--sim-muted); line-height: 1.5; }
.af-sim-card-link { margin-top: .95rem; }
.af-sim-unavailable { padding-block: 4rem; }
.af-sim-unavailable .af-sim-cta { margin-top: 1rem; }

@media (max-width: 950px) {
  .af-sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .af-sim-hero { align-items: end; min-height: 26rem; }
  .af-sim-hero-art { inset: 0; }
  .af-sim-hero-art img { object-position: center 34%; }
  .af-sim-hero::before {
    background:
      linear-gradient(0deg, #141317 0%, #141317ee 18%, #141317b0 48%, #14131715 82%),
      linear-gradient(90deg, #14131775, transparent 85%);
  }
  .af-sim-hero-content { padding-bottom: 1.65rem; }
  body.af-simulators-page .af-sim .af-sim-hero h1 { font-size: clamp(2.9rem, 11vw, 4.2rem); }
  .af-sim-section-head { flex-wrap: wrap; }
  .af-sim-grid { grid-template-columns: 1fr; }
}
