/* ==========================================================================
   v2 data components (job 4): nibble/faq-list, nibble/post-list
   Figma: Card_FAQ_Open / Card_FAQ_Closed_Default / _Hover (553:24114),
   FAQ category pills (553:24763), Card_List_Date (543:20861), Card_List_Simple (543:20654).
   Tokens come from v2.css (:root).
   ========================================================================== */

/* --------------------------------------------------------------------------
   FAQ list
   -------------------------------------------------------------------------- */

.nb-faq {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 100%;
  text-align: left;
}

.nb-faq__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.nb-faq__group {
  display: flex;
  flex-direction: column;
  gap: 32px;
  scroll-margin-top: 120px;
}

.nb-faq__title {
  margin: 0;
  font-family: var(--nb-ff-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--nb-n600);
}

.nb-faq__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nb-faq__item {
  background: #fff;
  border: 2px solid var(--nb-n50);
  border-radius: var(--nb-radius-m, 16px);
  transition: background-color .2s ease;
}

.nb-faq__summary {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 24px;
  cursor: pointer;
  list-style: none;
}

.nb-faq__summary::-webkit-details-marker {
  display: none;
}

.nb-faq__summary::marker {
  content: "";
}

.nb-faq__summary:focus-visible {
  outline: 2px solid var(--nb-p500);
  outline-offset: 2px;
  border-radius: var(--nb-radius-m, 16px);
}

.nb-faq__question {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  font-family: var(--nb-ff-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .2px;
  color: var(--nb-p700);
}

.nb-faq__toggle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin: -8px -4px -8px 0;
  color: var(--nb-p500);
}

.nb-faq__icon {
  display: block;
  width: 24px;
  height: 24px;
}

.nb-faq__icon--minus,
.nb-faq__item[open] .nb-faq__icon--plus {
  display: none;
}

.nb-faq__item[open] .nb-faq__icon--minus {
  display: block;
}

.nb-faq__answer {
  padding: 0 104px 16px 24px;
  margin-top: -8px;
  font-family: var(--nb-ff-text);
  font-size: 16px;
  line-height: 24px;
  color: var(--nb-n400);
}

.nb-faq__answer > :first-child {
  margin-top: 0;
}

.nb-faq__answer > :last-child {
  margin-bottom: 0;
}

.nb-faq__answer p,
.nb-faq__answer li {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.nb-faq__answer a {
  color: var(--nb-p500);
}

.nb-faq__more {
  display: flex;
  margin-top: 12px;
}

@media (hover: hover) {
  .nb-faq__item:not([open]):hover {
    background: var(--nb-n0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.nb-faq__nav) {
    scroll-behavior: smooth;
  }
}

@media (max-width: 1023px) {
  .nb-faq {
    gap: 40px;
  }

  .nb-faq__title {
    font-size: 28px;
  }

  .nb-faq__answer {
    padding-right: 24px;
  }
}

@media (max-width: 767px) {
  .nb-faq__nav {
    gap: 8px;
  }

  .nb-faq__group {
    gap: 24px;
  }

  .nb-faq__summary {
    gap: 16px;
    padding: 16px;
  }

  .nb-faq__question {
    font-size: 18px;
  }

  .nb-faq__answer {
    padding: 0 16px 16px;
  }
}

/* --------------------------------------------------------------------------
   Post list (Card_List_Date / Card_List_Simple)
   -------------------------------------------------------------------------- */

.nb-post-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
}

.nb-post-list__item {
  position: relative;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 24px 32px;
  background: #fff;
  border: 2px solid var(--nb-n50);
  border-radius: var(--nb-radius-m, 16px);
  transition: border-color .2s ease;
}

.nb-post-list--tone-lightblue .nb-post-list__item {
  border-color: transparent;
}

.nb-post-list__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.nb-post-list__date {
  font-family: var(--nb-ff-text);
  font-size: 14px;
  line-height: 20px;
  color: var(--nb-n400);
}

.nb-post-list__title {
  margin: 0;
  font-family: var(--nb-ff-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .2px;
  color: var(--nb-p700);
}

.nb-post-list__summary {
  margin: 0;
  font-family: var(--nb-ff-text);
  font-size: 16px;
  line-height: 24px;
  color: var(--nb-n400);
}

.nb-post-list__link {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  font-family: var(--nb-ff-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .32px;
  color: var(--nb-p500);
  text-decoration: none;
  white-space: nowrap;
}

/* The whole row is clickable through the link. */
.nb-post-list__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.nb-post-list__link:focus-visible {
  outline: none;
}

.nb-post-list__item:focus-within {
  outline: 2px solid var(--nb-p500);
  outline-offset: 2px;
}

.nb-post-list__icon {
  display: block;
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .nb-post-list--tone-white .nb-post-list__item:hover {
    border-color: var(--nb-p100);
  }

  .nb-post-list__item:hover .nb-post-list__link {
    color: var(--nb-p500-hover);
  }
}

@media (max-width: 767px) {
  .nb-post-list__item {
    flex-direction: column;
    gap: 8px;
    padding: 20px;
  }

  .nb-post-list__title {
    font-size: 18px;
  }
}
