.guide-section {
  padding: 6rem 0 8rem;
  background: #fafaf7;
}

.guide-container {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.guide-intro {
  max-width: 49rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.guide-eyebrow {
  color: #a07e0c;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.guide-intro h2 {
  margin-top: 1rem;
  color: #16161a;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.04em;
  word-break: keep-all;
}

.guide-intro > p {
  margin-top: 1.25rem;
  color: #626872;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  word-break: keep-all;
}

.guide-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #e8e5db;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 8px 30px -22px #16161a30;
}

.guide-search-wrap {
  flex: 1 1 18rem;
}

.guide-search-wrap label {
  display: block;
  margin-bottom: .45rem;
  color: #16161a;
  font-size: .875rem;
  font-weight: 800;
}

.guide-search-wrap input {
  display: block;
  width: 100%;
  min-height: 3rem;
  border: 1px solid #dcd9cf;
  border-radius: .8rem;
  background: #fafaf7;
  padding: .7rem .9rem;
  color: #16161a;
  font-size: 1rem;
}

.guide-search-wrap input:focus-visible,
.guide-playlist:focus-visible,
.guide-card:focus-visible {
  outline: 3px solid #cd9f10;
  outline-offset: 3px;
}

.guide-playlist {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: .8rem;
  background: #16161a;
  padding: .65rem 1rem;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}

.guide-playlist:hover {
  background: #a07e0c;
}

.guide-result {
  margin: 1.5rem 0 1rem;
  color: #626872;
  font-size: .9rem;
  font-weight: 700;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9e5d9;
  border-radius: 1.1rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 3px 12px -10px #16161a40;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

a.guide-card:hover,
button.guide-card:not(:disabled):hover {
  transform: translateY(-3px);
  border-color: #cd9f10;
  box-shadow: 0 14px 34px -22px #16161a65;
}

.guide-card__image-wrap {
  position: relative;
  display: block;
  width: 7rem;
  min-height: 11rem;
  flex: 0 0 7rem;
  overflow: hidden;
  background: #fbf1d2;
}

.guide-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card__number {
  position: absolute;
  top: .6rem;
  left: .6rem;
  border-radius: .45rem;
  background: #16161ae6;
  padding: .28rem .45rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.guide-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
}

.guide-card__eyebrow {
  color: #a07e0c;
  font-size: .8rem;
  font-weight: 800;
}

.guide-card__title {
  display: block;
  margin-top: .45rem;
  color: #16161a;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 900;
  line-height: 1.35;
  word-break: keep-all;
}

.guide-card__summary {
  display: block;
  margin-top: .55rem;
  color: #626872;
  font-size: .82rem;
  line-height: 1.5;
  word-break: keep-all;
}

.guide-card__action {
  display: inline-block;
  margin-top: auto;
  padding-top: .8rem;
  color: #a07e0c;
  font-size: .94rem;
  font-weight: 900;
}

.guide-empty {
  padding: 3rem 1rem;
  color: #626872;
  text-align: center;
}

.guide-empty[hidden] {
  display: none;
}

.guide-modal-link {
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.guide-modal-link:focus-visible {
  outline: 3px solid #cd9f10;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .guide-section { padding: 4.5rem 0 6rem; }
  .guide-container { width: min(100% - 2rem, 38rem); }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-playlist { width: 100%; }
}

@media (max-width: 390px) {
  .guide-card__image-wrap { width: 5.7rem; flex-basis: 5.7rem; }
  .guide-card__body { padding: .9rem; }
  .guide-card__summary { font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card, .guide-playlist { transition: none; }
}

.guide-card[hidden] { display: none; }
#videoModal.guide-modal--short .guide-modal-shell { width: min(90vw, 24rem, 45vh); max-width: none; }
#videoModal.guide-modal--short .guide-modal-player { aspect-ratio: 9 / 16; }

.guide-card--pending { opacity: .72; }
.guide-card--pending .guide-card__action { color: #626872; }

button.guide-card { width: 100%; padding: 0; text-align: left; font: inherit; cursor: pointer; }
button.guide-card:disabled { cursor: default; }
