/* ===== Guides page — Figma card-based design ===== */

.guides-page {
  padding-top: 0;
  padding-bottom: 0;
  max-width: 1440px;
  margin: 0 auto;
}

/* ---- Section common ---- */
.guides-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.guides-section-inner {
  width: 1360px;
  max-width: 100%;
}

/* ---- Section 01: Hero ---- */
.guides-hero {
  padding: 120px 40px 0;
}

.guides-hero .guides-section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.guides-topic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.guides-title {
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 56px;
  line-height: 72px;
  font-weight: 500;
  margin: 0;
  text-align: center;
  color: #000000;
  width: 1360px;
  max-width: 100%;
}

.guides-subtitle {
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #666666;
  margin: 0;
  text-align: center;
  width: 800px;
  max-width: 100%;
}

/* ---- Card grid ---- */
.guides-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: stretch;
}

.guides-cards-row {
  display: flex;
  gap: 24px;
  align-self: stretch;
}

/* ---- Card ---- */
.guides-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 40px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  transition: box-shadow 0.2s;
}

.guides-card--light {
  background: rgba(0, 0, 0, 0.04);
}

.guides-card--alt {
  background: #F2F2F9;
}

a.guides-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Card: tab label */
.guides-card-tab {
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 510;
  color: #4C55FF;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Card: content block */
.guides-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.guides-card-title {
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: #000000;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guides-card-summary {
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #666666;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card: date */
.guides-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guides-card-date {
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
  margin: 0;
}

.guides-card-arrow {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

a.guides-card:hover .guides-card-arrow {
  transform: translateX(4px);
}

/* ---- Expand / Collapse divider ---- */
.guides-expand-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
}

.guides-expand-line {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 1000px;
}

.guides-expand-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1000px;
  background: transparent;
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: #666666;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.guides-expand-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
  color: #000000;
}

.guides-expand-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.guides-expand-btn.is-expanded svg {
  transform: rotate(180deg);
}

/* Hidden rows (collapsed by default) */
.guides-cards-row.is-hidden {
  display: none;
}

/* ---- Section 02: Full Archive ---- */
.guides-archive {
  padding: 120px 40px 160px;
}

.guides-archive .guides-section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Tab bar (archive) */
.guides-archive-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 1440px;
  max-width: 100%;
  padding: 0 24px;
  height: 48px;
  background: transparent;
}

.guides-archive-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: auto;
}

.guides-archive-tab-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-radius: 12px 12px 0 0;
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #666666;
  transition: color 0.2s;
  white-space: nowrap;
}

.guides-archive-tab:hover .guides-archive-tab-label {
  color: #000000;
}

.guides-archive-tab.is-active .guides-archive-tab-label {
  font-weight: 700;
  color: #4C55FF;
}

.guides-archive-tab-line {
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: transparent;
  opacity: 0;
  transition: background 0.2s, opacity 0.2s;
}

.guides-archive-tab.is-active .guides-archive-tab-line {
  background: #4C55FF;
  opacity: 1;
}

/* Archive card grid */
.guides-archive-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: stretch;
}

/* ---- Responsive ---- */
@media (max-width: 1280px) {
  .guides-title {
    font-size: 44px;
    line-height: 56px;
  }
  .guides-hero, .guides-archive {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media (max-width: 1024px) {
  .guides-cards-row {
    flex-wrap: wrap;
  }
  .guides-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
  .guides-hero, .guides-archive {
    padding-left: 40px;
    padding-right: 40px;
  }
  .guides-title {
    font-size: 36px;
    line-height: 48px;
  }
  .guides-archive-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .guides-hero {
    padding-top: 80px;
  }
  .guides-archive {
    padding-top: 80px;
    padding-bottom: 100px;
  }
  .guides-hero, .guides-archive {
    padding-left: 20px;
    padding-right: 20px;
  }
  .guides-title {
    font-size: 32px;
    line-height: 40px;
  }
  .guides-subtitle {
    font-size: 15px;
    line-height: 22px;
    width: 100%;
  }
  .guides-cards-row {
    flex-direction: column;
    gap: 16px;
  }
  .guides-card {
    flex: 0 0 100%;
    padding: 24px;
  }
  .guides-card-title {
    font-size: 20px;
    line-height: 28px;
    -webkit-line-clamp: 3;
  }
  .guides-card-summary {
    -webkit-line-clamp: 4;
  }
  .guides-card-arrow {
    width: 32px;
    height: 32px;
  }
  .guides-archive-tabs {
    gap: 16px;
    padding: 0 8px;
  }
  .guides-archive-tab-label {
    font-size: 13px;
    padding: 6px 8px;
  }
  .guides-section {
    gap: 40px;
  }
}
