/* =========================================================
   Baseball Hot - Guide Page
   Accordion Guide Reader UI
   ========================================================= */

.guide-page-wrapper {
  max-width: 1180px;
}

.guide-title-line {
  border: 0;
  height: 5px;
  background: rgb(5, 71, 0);
  margin: -10px 10px 10px 0;
  opacity: 1;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  margin: 18px 10px 16px 0;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(54, 170, 82, 0.24), transparent 36%),
    linear-gradient(135deg, #073817 0%, #0f5a25 52%, #12371f 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.guide-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #d8ffe2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.guide-hero h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 900;
}

.guide-hero p {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  font-size: 15px;
}

.guide-search-box {
  display: flex;
  align-items: center;
  max-width: 720px;
  gap: 8px;
  padding: 10px 10px 10px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(6, 95, 70, 0.12);
}

.guide-search-icon {
  flex: 0 0 auto;
  font-size: 18px;
}

#guideSearchInput {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #123524;
  font-size: 15px;
  font-weight: 700;
}

#guideSearchInput::placeholder {
  color: #8ca197;
  font-weight: 600;
}

#guideSearchClearBtn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: #0f5a25;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

#guideSearchClearBtn:hover {
  background: #0a451b;
}

.guide-search-hint {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.guide-hero-side {
  align-self: stretch;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.guide-hero-side-label {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 900;
}

.guide-hero-side-title {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
}

.guide-hero-side-text {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  font-size: 14px;
}

.guide-doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0 10px 40px 0;
}

.guide-doc-nav {
  position: sticky;
  top: 16px;

  height: auto;
  min-height: calc(100vh - 32px);
  max-height: none;
  overflow: visible;

  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e3e9e5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.guide-doc-nav .guide-nav-group,
.guide-doc-nav .guide-nav-items {
  max-height: none;
  overflow: visible;
}

.guide-nav-header {
  padding: 2px 4px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #edf2ef;
}

.guide-nav-title {
  color: #0f4220;
  font-size: 18px;
  font-weight: 900;
}

.guide-nav-subtitle {
  margin-top: 3px;
  color: #7b8b81;
  font-size: 13px;
  font-weight: 700;
}

.guide-nav-group {
  margin-bottom: 8px;
  border-radius: 14px;
  background: #f8fbf8;
  border: 1px solid #edf2ef;
  overflow: hidden;
}

.guide-nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  padding: 12px 12px;
  background: transparent;
  color: #173822;
  text-align: left;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.guide-nav-heading:hover {
  background: #edf8ef;
}

.guide-nav-arrow {
  transition: transform 0.15s ease;
  color: #145c22;
}

.guide-nav-group.open .guide-nav-arrow {
  transform: rotate(180deg);
}

.guide-nav-items {
  display: none;
  padding: 0 8px 9px;
}

.guide-nav-group.open .guide-nav-items {
  display: block;
}

.guide-topic-link {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 9px 10px 9px 18px;
  background: transparent;
  color: #415849;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.guide-topic-link:hover {
  background: #eef8f0;
  color: #0f5a25;
}

.guide-topic-link.active {
  background: #145c22;
  color: #fff;
  box-shadow: 0 5px 12px rgba(20, 92, 34, 0.2);
}

.guide-no-result {
  margin: 8px 0 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

.guide-reader-panel {
  min-height: 560px;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e2e8e4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.guide-article {
  display: none;
  animation: guideFadeIn 0.18s ease;
}

.guide-article.active {
  display: block;
}

@keyframes guideFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-article-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #edf8ef;
  color: #126225;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.guide-article h2 {
  margin: 0 0 14px;
  color: #172c1e;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 900;
}

.guide-article p {
  margin: 0 0 14px;
  color: #4f6256;
  font-size: 16px;
  line-height: 1.85;
}

.guide-article ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.guide-article li {
  margin: 6px 0;
  color: #4f6256;
  line-height: 1.7;
}

.guide-note {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f3faf4;
  border: 1px solid #cfe6d3;
  color: #315340;
  line-height: 1.75;
}

.guide-note strong {
  color: #145c22;
}

.guide-status-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.guide-status-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(207, 230, 211, 0.75);
}

.guide-status-row .condition-light {
  margin-top: 5px;
  justify-self: center;
}

.guide-status-row p {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.65;
}

.guide-back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #145c22;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.guide-back-top.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.guide-back-top:hover {
  background: #0b4519;
}

/* =========================================================
   RWD
   ========================================================= */

@media (max-width: 980px) {
  .guide-hero {
    grid-template-columns: 1fr;
  }

  .guide-doc-layout {
    grid-template-columns: 1fr;
  }

  .guide-doc-nav {
    position: static;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .guide-reader-panel {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .guide-title-line {
    margin-right: 0;
  }

  .guide-hero {
    margin-right: 0;
    padding: 16px;
    border-radius: 18px;
  }

  .guide-hero h2 {
    font-size: 22px;
  }

  .guide-hero p {
    font-size: 14px;
  }

  .guide-search-box {
    padding: 9px;
    border-radius: 14px;
  }

  #guideSearchClearBtn {
    padding: 7px 10px;
    font-size: 13px;
  }

  .guide-doc-layout {
    margin-right: 0;
  }

  .guide-doc-nav,
  .guide-reader-panel {
    border-radius: 18px;
  }

  .guide-reader-panel {
    padding: 20px 16px;
  }

  .guide-article h2 {
    font-size: 24px;
  }

  .guide-article p {
    font-size: 15px;
  }

  .guide-back-top {
    right: 16px;
    bottom: 16px;
  }
}

/* Guide hero 右側純 LOGO */
.guide-hero-logo-only {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 0;
}

.guide-hero-logo-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.16));
}

@media (max-width: 768px) {
    .guide-hero-logo-only {
        min-height: 140px;
    }

    .guide-hero-logo-img {
        width: 130px;
        height: 130px;
    }
}