.temple-cheat-sheet-page {
  background: #f7f8fb;
  color: #1d2530;
}

.temple-cheat-sheet-page .cheat-sheet-hero {
  background: linear-gradient(135deg, #17243a 0%, #25476b 58%, #3d6689 100%);
  color: #edf6ff;
}

.temple-cheat-sheet-page .cheat-sheet-hero .breadcrumb,
.temple-cheat-sheet-page .cheat-sheet-hero .breadcrumb a,
.temple-cheat-sheet-page .cheat-sheet-hero .breadcrumb span {
  color: #bfe6ff;
}

.temple-cheat-sheet-page .cheat-sheet-hero .page-kicker {
  color: #bfe6ff;
}

.temple-cheat-sheet-page .cheat-sheet-hero .page-title {
  color: #9dd7ff;
}

.temple-cheat-sheet-page .cheat-sheet-hero .page-subtitle {
  color: #f3f8ff;
}

.temple-cheat-sheet-page .cheat-sheet-hero .page-description {
  color: #e1edf8;
}

.cheat-sheet-tool-section,
.cheat-sheet-copy {
  max-width: 1120px;
}

.cheat-sheet-tool-section {
  margin-top: 2.5rem;
}

.tool-heading {
  max-width: 850px;
  margin-bottom: 1rem;
}

.cheat-sheet-tool {
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(28, 46, 71, 0.08);
  padding: 1.25rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(230px, 1.7fr) repeat(3, minmax(145px, 1fr)) auto;
  gap: .75rem;
  align-items: end;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e7ebf0;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.filter-field label {
  color: #47576b;
  font-size: .82rem;
  font-weight: 700;
}

.filter-field input,
.filter-field select {
  min-height: 42px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #17202c;
  padding: .55rem .7rem;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: #2d6ca2;
  outline: 3px solid rgba(45, 108, 162, .15);
}

.filter-reset {
  white-space: nowrap;
  min-height: 42px;
}

.result-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 .8rem;
}

.result-title {
  margin: 0;
  font-size: 1.3rem;
}

.result-count {
  margin: 0;
  color: #65758a;
  font-size: .9rem;
}

.room-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.room-card {
  border: 1px solid #dce4ed;
  border-radius: 13px;
  background: #fbfcfe;
  padding: 1rem;
  min-width: 0;
}

.room-card[hidden] {
  display: none !important;
}

.room-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .7rem;
}

.room-card-header img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #eef3f8;
  padding: 4px;
}

.room-card h3 {
  margin: 0;
  color: #182638;
  font-size: 1.05rem;
}

.room-family {
  margin: 0 0 .15rem;
  color: #2d6ca2;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.room-focus {
  margin: 0 0 .75rem;
  color: #44566b;
  font-size: .92rem;
}

.room-facts {
  display: grid;
  gap: .55rem;
  margin: 0;
}

.room-facts div {
  border-top: 1px solid #e7ecf2;
  padding-top: .5rem;
}

.room-facts dt {
  color: #64758a;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.room-facts dd {
  margin: .15rem 0 0;
  color: #26374a;
  font-size: .87rem;
  line-height: 1.45;
}

.empty-state {
  border: 1px dashed #9db2c9;
  border-radius: 12px;
  background: #f1f6fb;
  padding: 1.5rem;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 .4rem;
}

.empty-state p {
  margin: 0;
  color: #53667a;
}

.cheat-sheet-copy {
  padding-bottom: 3rem;
}

.cheat-sheet-copy .content-section {
  margin-top: 2.25rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.example-card {
  background: #fff;
  border-left: 4px solid #3d789e;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 5px 18px rgba(28, 46, 71, .06);
  padding: 1rem 1.05rem;
}

.example-card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.example-card p {
  color: #526477;
  line-height: 1.55;
}

.source-links li {
  margin-bottom: .5rem;
}

@media (max-width: 1020px) {
  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-search,
  .filter-reset {
    grid-column: span 2;
  }

  .room-results,
  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cheat-sheet-tool {
    border-radius: 11px;
    padding: .85rem;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .filter-search,
  .filter-reset {
    grid-column: auto;
  }

  .result-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .room-results,
  .example-grid {
    grid-template-columns: 1fr;
  }
}
