/* Guides content center — Hinglish hub / article / chips */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.guide-hub-root,
.guide-hub-page,
.guide-article {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1.15rem 3rem;
}

.guide-hub-head h1,
.guide-article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  color: var(--ivory);
  line-height: 1.15;
  margin: 0.25rem 0 0.6rem;
}

.guide-hub-head p,
.guide-deck {
  color: var(--muted);
  max-width: 48ch;
}

.guide-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

.guide-meta {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--ivory-dim);
}

.guide-crumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.guide-crumbs a {
  color: var(--gold);
  text-decoration: none;
}

.guide-search {
  margin: 0 0 1.5rem;
}

.guide-search input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 188, 90, 0.28);
  background: rgba(6, 20, 15, 0.55);
  color: var(--ivory);
  font: inherit;
}

.guide-search input:focus {
  outline: 2px solid rgba(224, 176, 80, 0.45);
  outline-offset: 1px;
}

.guide-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.guide-chip {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(232, 188, 90, 0.28);
  border-radius: 999px;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 0.82rem;
  background: rgba(20, 51, 40, 0.55);
}

.guide-chip:hover {
  border-color: rgba(232, 188, 90, 0.55);
}

.guide-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .guide-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.guide-card-lite {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 188, 90, 0.22);
  background: linear-gradient(160deg, rgba(22, 58, 44, 0.85), rgba(6, 20, 15, 0.9));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.guide-card-lite:hover {
  border-color: rgba(232, 188, 90, 0.5);
  transform: translateY(-1px);
}

.guide-card-lite h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin: 0 0 0.35rem;
}

.guide-card-lite p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.guide-block {
  margin: 1.5rem 0;
}

.guide-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ivory);
  margin: 0 0 0.75rem;
}

.guide-quick {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--brass);
  background: rgba(224, 176, 80, 0.08);
  border-radius: 0 12px 12px 0;
}

.guide-quick h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
}

.guide-quick p {
  margin: 0;
  color: var(--ivory);
  line-height: 1.55;
}

.guide-prose {
  color: var(--text);
  line-height: 1.65;
}

.guide-prose p {
  margin: 0 0 1rem;
}

.guide-steps {
  margin: 0 0 1rem 1.1rem;
  color: var(--ivory-dim);
}

.guide-steps li {
  margin: 0.4rem 0;
}

.guide-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.guide-table th,
.guide-table td {
  border: 1px solid rgba(232, 188, 90, 0.2);
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.guide-table th {
  background: rgba(224, 176, 80, 0.12);
  color: var(--gold-bright);
}

.guide-faq details {
  border-bottom: 1px solid rgba(232, 188, 90, 0.16);
  padding: 0.65rem 0;
}

.guide-faq summary {
  cursor: pointer;
  color: var(--gold-bright);
  font-weight: 600;
}

.guide-faq p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.guide-notice {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.guide-notice-warn {
  background: rgba(208, 64, 56, 0.12);
  border: 1px solid rgba(208, 64, 56, 0.35);
  color: #f0c4bc;
}

.guide-notice-info {
  background: rgba(14, 122, 80, 0.18);
  border: 1px solid rgba(110, 231, 168, 0.28);
  color: var(--ivory-dim);
}

.guide-related {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 188, 90, 0.2);
}

.guide-related ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.guide-play-links {
  font-size: 0.88rem;
  color: var(--muted);
}

.guide-bullets {
  margin: 0 0 1rem 1.1rem;
  color: var(--ivory-dim);
}

.guide-bullets li {
  margin: 0.35rem 0;
}

.guide-example {
  border: 1px dashed rgba(232, 188, 90, 0.35);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(224, 176, 80, 0.05);
}

.guide-caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.guide-notice p {
  margin: 0 0 0.5rem;
}

.guide-notice p:last-child {
  margin-bottom: 0;
}

/* Guides hub — reuse Games catalog / hero language */
.page-guides.page-games .games-hero {
  margin-bottom: 0;
}

.page-guides .guide-topic-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.75rem 0 1.25rem;
}

.page-guides .guide-topic-pill {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 188, 90, 0.28);
  background: rgba(20, 51, 40, 0.55);
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: capitalize;
}

.page-guides .guide-topic-pill:hover {
  border-color: rgba(232, 188, 90, 0.55);
  color: var(--gold);
}

.page-guides .catalog-grid .guide-card.game-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
}

.guide-cover {
  margin: 0 0 0.85rem;
  max-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(232, 188, 90, 0.28);
  background: rgba(0, 0, 0, 0.2);
  aspect-ratio: 480 / 160;
}

.guide-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-guides .catalog-grid .guide-card.game-card .guide-card-cover {
  width: 100%;
  max-height: 72px;
  aspect-ratio: 480 / 160;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(232, 188, 90, 0.2);
}

.guide-card-grid .guide-card-cover {
  width: 100%;
  max-height: 72px;
  aspect-ratio: 480 / 160;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.45rem;
}

.page-guides .catalog-grid .guide-card.game-card h3 {
  text-align: left;
}

.page-guides .catalog-grid .guide-card.game-card > p {
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-guides .guide-cat-fold {
  position: relative;
  z-index: 95;
  max-width: min(920px, 100%);
  margin: 0 auto 14px;
  padding: 0 4px;
}

.page-guides .guide-cat-fold-panel {
  position: relative;
}

.page-guides .guide-cat-fold .category-filter {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  max-width: none;
  margin: 0;
  padding: 6px 64px 6px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: static;
  top: auto;
  background: transparent;
  mask-image: none;
}

.page-guides .guide-cat-fold .category-filter::-webkit-scrollbar {
  display: none;
}

.page-guides .guide-cat-fold .category-filter .filter-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 0;
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.75rem;
  touch-action: manipulation;
}

.page-guides .guide-cat-toggle {
  position: absolute;
  top: 4px;
  right: 2px;
  z-index: 2;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 188, 90, 0.45);
  background: rgba(6, 20, 15, 0.96);
  color: var(--gold-bright);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.page-guides .guide-cat-toggle-less {
  display: none;
}

.page-guides .guide-cat-fold.is-open .guide-cat-toggle-more {
  display: none;
}

.page-guides .guide-cat-fold.is-open .guide-cat-toggle-less {
  display: inline;
}

/* Compact dropdown panel — not full-width overlay */
.page-guides .guide-cat-fold.is-open .guide-cat-fold-panel {
  position: absolute;
  left: auto;
  right: 0;
  top: 0;
  width: min(248px, calc(100vw - 24px));
  z-index: 96;
  padding: 36px 8px 8px;
  border-radius: 12px;
  border: 1px solid rgba(232, 188, 90, 0.35);
  background: rgba(4, 16, 12, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.page-guides .guide-cat-fold.is-open .category-filter {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow: visible;
  max-height: min(52vh, 340px);
  overflow-y: auto;
  padding: 0;
  gap: 4px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.page-guides .guide-cat-fold.is-open .category-filter .filter-btn {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.78rem;
  text-align: left;
  border-radius: 8px;
  background: rgba(20, 40, 32, 0.96);
  border: 1px solid rgba(232, 188, 90, 0.18);
}

.page-guides .guide-cat-fold.is-open .category-filter .filter-btn.active {
  background: linear-gradient(180deg, rgba(245, 216, 120, 0.34), rgba(224, 176, 80, 0.18));
  border-color: rgba(232, 188, 90, 0.55);
}

.page-guides .guide-cat-fold.is-open .guide-cat-toggle {
  top: 6px;
  right: 6px;
  background: rgba(8, 24, 18, 0.98);
}

body.guide-cat-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(2, 8, 6, 0.32);
  pointer-events: auto;
}

.page-guides #latest-guides .inner,
.page-guides #featured-guides .inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-guides .guide-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
  padding-left: 14px;
  padding-right: 14px;
}

@media (min-width: 960px) {
  .page-guides .guide-split {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
  }
}

.page-guides .guide-split-main {
  min-width: 0;
}

.page-guides .guide-split-main .browse-shelf {
  max-width: none;
}

.page-guides .guide-split-side {
  padding: 1rem 0.9rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 188, 90, 0.22);
  background: rgba(6, 20, 15, 0.55);
}

@media (min-width: 960px) {
  .page-guides .guide-split-side {
    position: sticky;
    top: calc(var(--header-h) + 12px);
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
  }
}

/* Guides scrollbars — slim brass rail */
.page-guides .browse-shelf,
.page-guides .guide-split-side,
.page-guides .guide-cat-fold.is-open .category-filter {
  scrollbar-width: thin;
  scrollbar-color: #c49a3c transparent;
}

.page-guides .browse-shelf::-webkit-scrollbar,
.page-guides .guide-split-side::-webkit-scrollbar,
.page-guides .guide-cat-fold.is-open .category-filter::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.page-guides .browse-shelf::-webkit-scrollbar-track,
.page-guides .guide-split-side::-webkit-scrollbar-track,
.page-guides .guide-cat-fold.is-open .category-filter::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.page-guides .browse-shelf::-webkit-scrollbar-thumb,
.page-guides .guide-split-side::-webkit-scrollbar-thumb,
.page-guides .guide-cat-fold.is-open .category-filter::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f0d078, #b07828);
  border-radius: 999px;
  border: 1px solid rgba(6, 20, 15, 0.35);
}

.page-guides .browse-shelf::-webkit-scrollbar-thumb:hover,
.page-guides .guide-split-side::-webkit-scrollbar-thumb:hover,
.page-guides .guide-cat-fold.is-open .category-filter::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffe9a8, #e0b050);
}

.page-guides .browse-shelf::-webkit-scrollbar-corner,
.page-guides .guide-split-side::-webkit-scrollbar-corner {
  background: transparent;
}

.page-guides .guide-split-side h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ivory);
  margin: 0 0 0.35rem;
}

.page-guides .guide-side-lead {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-guides .guide-feat-stack {
  display: grid;
  gap: 0.7rem;
}

.page-guides .guide-feat-card {
  padding: 0.75rem !important;
}

.page-guides .guide-feat-card h3 {
  font-size: 0.98rem !important;
}

.page-guides .guide-feat-card > p {
  font-size: 0.78rem;
  -webkit-line-clamp: 2;
}

.gd-related-guides {
  max-width: 920px;
  margin: 1.5rem auto 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(232, 188, 90, 0.25);
  border-radius: 14px;
  background: rgba(6, 20, 15, 0.45);
}
.gd-related-guides h2 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}
.gd-related-guides ul { margin: 0 0 0.75rem; padding-left: 1.1rem; }
.gd-related-guides a { color: var(--gold); }
