.guides-reference-page {
  --guides-ink: #171A21;
  --guides-navy: #0F172A;
  --guides-muted: #6B7280;
  --guides-blue: #2F6DE0;
  --guides-teal: #12B8A6;
  --guides-blue-soft: #EEF4FF;
  --guides-border: #DFE6EF;
  --guides-chip: #F4F3F1;
  color: var(--guides-ink);
  background: #FFFFFF;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.guides-reference-page .site-header.home-nav {
  border-bottom: 1px solid var(--guides-border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.guides-reference-page .site-header.home-nav .nav-shell {
  width: min(100% - 48px, 1760px);
  margin: 0 auto;
}

.guides-container {
  width: min(100% - 56px, 1680px);
  margin: 0 auto;
}

.guides-main {
  min-height: 65vh;
  background: #FFFFFF;
}

.guides-hero {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--guides-border);
  background: linear-gradient(135deg, #FFFFFF 0%, #F7FAFF 100%);
  text-align: center;
}

.guides-hero-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 12px;
  color: var(--guides-blue);
  background: #E8EFFD;
}

.guides-hero-icon svg,
.guide-card-time svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.guides-hero-icon svg {
  width: 24px;
  height: 24px;
}

.guides-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--guides-navy);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.guides-hero p {
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--guides-muted);
  font-size: clamp(0.95rem, 1vw, 1.06rem);
  line-height: 1.48;
}

.guides-search-wrap {
  position: relative;
  width: min(100%, 520px);
  margin: 16px auto 0;
}

.guides-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--guides-muted);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.guides-search {
  width: 100%;
  min-height: 42px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--guides-border);
  border-radius: 12px;
  color: var(--guides-navy);
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  outline: none;
}

.guides-search::placeholder {
  color: #8A94A6;
}

.guides-search:focus {
  border-color: rgba(18, 184, 166, 0.75);
  box-shadow: 0 0 0 4px rgba(18, 184, 166, 0.12);
}

.guides-browse {
  padding: 22px 0 60px;
}

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

.guides-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 6px;
}

.guides-filter {
  min-height: 29px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--guides-muted);
  background: var(--guides-chip);
  font-size: clamp(0.7rem, 0.68vw, 0.78rem);
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.guides-filter:hover {
  color: var(--guides-blue);
}

.guides-filter.is-active {
  color: #FFFFFF;
  background: var(--guides-blue);
}

.guides-filter:focus-visible,
.guide-card-link:focus-visible,
.guides-featured-link:focus-visible,
.guides-page-control:focus-visible,
.guides-page-number:focus-visible,
.guides-search:focus-visible {
  outline: 3px solid rgba(47, 109, 224, 0.35);
  outline-offset: 3px;
}

.guides-result-count {
  margin: 0 0 9px;
  color: var(--guides-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.guides-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px 18px;
  border: 1px solid var(--guides-border);
  border-radius: 14px;
  background: #F7FAFF;
}

.guides-featured[hidden] {
  display: none;
}

.guides-featured .guide-card-meta {
  margin-bottom: 6px;
}

.guides-featured h2 {
  margin: 0 0 6px;
  color: var(--guides-navy);
  font-size: clamp(1.18rem, 1.2vw, 1.42rem);
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: 0;
}

.guides-featured p {
  max-width: 820px;
  margin: 0;
  color: var(--guides-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.guides-featured-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #FFFFFF;
  background: var(--guides-blue);
  font-size: 0.88rem;
  font-weight: 820;
  white-space: nowrap;
}

.guides-featured-link:hover {
  color: #FFFFFF;
  background: #1759C4;
  text-decoration: none;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 14px;
}

.guide-card {
  display: flex;
  min-height: 214px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--guides-border);
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.guide-card.is-hidden {
  display: none;
}

.guide-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.guide-card-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--guides-blue);
  background: #F3F6FF;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-card-time {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--guides-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.guide-card-time svg {
  width: 15px;
  height: 15px;
}

.guide-card h2 {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--guides-navy);
  font-size: clamp(1rem, 0.92vw, 1.12rem);
  font-weight: 800;
  line-height: 1.23;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.guide-card p {
  display: -webkit-box;
  min-height: 2.96em;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--guides-muted);
  font-size: 0.86rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guide-card:hover {
  border-color: rgba(47, 109, 224, 0.28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.guide-card-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: var(--guides-blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.guide-card-link:hover {
  color: #1759C4;
  text-decoration: none;
}

.guide-card-link span {
  font-size: 1.12rem;
  line-height: 1;
}

.guides-empty {
  margin: 40px 0 0;
  color: var(--guides-muted);
  font-size: 1.15rem;
  text-align: center;
}

.guides-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.guides-pagination[hidden] {
  display: none;
}

.guides-page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.guides-page-control,
.guides-page-number {
  min-height: 38px;
  border: 1px solid var(--guides-border);
  border-radius: 999px;
  color: var(--guides-muted);
  background: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.guides-page-control {
  padding: 0 16px;
}

.guides-page-number {
  min-width: 38px;
  padding: 0 12px;
}

.guides-page-control:hover,
.guides-page-number:hover {
  color: var(--guides-blue);
  border-color: rgba(47, 109, 224, 0.35);
}

.guides-page-number.is-active {
  color: #FFFFFF;
  border-color: var(--guides-blue);
  background: var(--guides-blue);
}

.guides-page-control:disabled {
  color: #A5ADBA;
  background: #F8FAFC;
  cursor: not-allowed;
}

@media (max-width: 1220px) {
  .guides-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 780px) {
  .guides-reference-page .site-header.home-nav .nav-shell,
  .guides-container {
    width: min(100% - 32px, 1760px);
  }

  .guides-hero {
    padding: 20px 0 24px;
  }

  .guides-hero-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 11px;
  }

  .guides-hero-icon svg {
    width: 22px;
    height: 22px;
  }

  .guides-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .guides-hero p {
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .guides-search-wrap {
    margin-top: 14px;
  }

  .guides-search {
    min-height: 40px;
    border-radius: 11px;
    font-size: 0.92rem;
  }

  .guides-browse {
    padding: 18px 0 52px;
  }

  .guides-filter-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-bottom: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .guides-filter-row::-webkit-scrollbar {
    display: none;
  }

  .guides-filter {
    min-height: 31px;
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .guides-result-count {
    margin-bottom: 8px;
    text-align: left;
  }

  .guides-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .guides-featured p {
    font-size: 0.88rem;
  }

  .guides-featured-link {
    width: 100%;
  }

  .guides-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-card {
    min-height: 0;
    padding: 16px;
  }

  .guide-card h2 {
    font-size: clamp(1.05rem, 4.8vw, 1.22rem);
  }

  .guide-card p {
    font-size: 0.86rem;
  }

  .guides-pagination {
    justify-content: flex-start;
  }

  .guides-page-numbers {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .guides-filter,
  .guide-card-link,
  .guides-featured-link {
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }
}
