:root {
  --yuj-faq-ink: #1a1a1a;
  --yuj-faq-muted: #5b5b63;
  --yuj-faq-accent: #5a4bff;
  --yuj-faq-line: #C6C6C6;
  --yuj-faq-orange: #e8873f;
  --yuj-faq-bg-glow: #fbf3e9;
  --yuj-site-header-height: 86px;
  --yuj-faq-serif: Petrona, Times, serif;
  --yuj-faq-sans: Figtree, Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--yuj-faq-sans);
  color: var(--yuj-faq-ink);
  background:
    radial-gradient(
      ellipse 900px 500px at -10% 0%,
      var(--yuj-faq-bg-glow),
      transparent 60%
    ),
    radial-gradient(ellipse 700px 500px at 110% 100%, #eef0fb, transparent 55%),
    #ffffff;
  background-attachment: fixed;
  line-height: 1.5;
}
.yuj-faq-wrap {
  display: flex;
  /* Keep the first heading and sidebar below the fixed desktop header. */
  /*padding: calc(var(--yuj-site-header-height) + 16px) 24px 96px;*/
  padding-top:60px;
  gap: 64px;
  align-items: flex-start;
}
.yuj-faq-heading {
  margin: 50px 0px 0px 0px;
}
.yuj-faq-heading h1{
  line-height: normal;
}
/* Sidebar */
nav.yuj-faq-nav {
  flex: 0 0 250px;
  position: sticky;
  top: var(--yuj-site-header-height);
  align-self: flex-start;
  border-right: none;
  padding-right: 0;
  max-height: calc(100vh - var(--yuj-site-header-height));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--yuj-faq-accent) var(--yuj-faq-line);
  overflow-y: auto;
}
nav.yuj-faq-nav::-webkit-scrollbar {
  width: 3px;
}
nav.yuj-faq-nav::-webkit-scrollbar-track {
  background: var(--yuj-faq-line);
  border-radius: 2px;
}
nav.yuj-faq-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8f7fff, var(--yuj-faq-accent));
  border-radius: 2px;
  transition: background 0.2s ease;
}
nav.yuj-faq-nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a396ff, #4636e0);
}
nav.yuj-faq-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 16px 8px 0;
}
nav.yuj-faq-nav li {
  margin-bottom: 22px;
}
nav.yuj-faq-nav a {
  text-decoration: none;
  color: var(--yuj-faq-ink);
  font-size: 15px;
  transition: color 0.15s ease;
}
nav.yuj-faq-nav a:hover {
  color: var(--yuj-faq-accent);
}
nav.yuj-faq-nav a.yuj-faq-active {
  color: var(--yuj-faq-accent);
  font-weight: 600;
  outline:none;
}

/* Main content */
main.yuj-faq-main {
  flex: 1 1 auto;
  min-width: 0;
}

.yuj-faq-section {
    /* JavaScript calculates the exact nav height on click. */
    scroll-margin-top: calc(var(--yuj-site-header-height) + 80px);
    margin-bottom: 60px;
  }
.yuj-faq-section:last-child {
  margin-bottom: 0;
}

.yuj-faq-section h2 {
  font-family: var(--yuj-faq-serif);
  font-size: 34px;
  margin: 0 0 20px;
  color: var(--yuj-faq-ink);
}

.yuj-faq-subhead {
  font-family: var(--yuj-faq-serif);
  font-size: 26px;
  font-weight: 600;
  margin: 36px 0 10px;
  color: var(--yuj-faq-ink);
}
.yuj-faq-item + .yuj-faq-subhead,
h2 + .yuj-faq-subhead {
  margin-top: 36px;
}
.yuj-faq-subhead-minor {
  font-family: var(--yuj-faq-sans);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 24px 0 4px;
  color: var(--yuj-faq-muted);
}

/* Accordion item */
.yuj-faq-item {
  border-bottom: 1px solid var(--yuj-faq-line);
  content-visibility: auto;
  contain-intrinsic-size: auto 60px;
}
.yuj-faq-item:first-child {
  border-top: 1px solid var(--yuj-faq-line);
}

.yuj-faq-question {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  cursor: pointer;
  font-size: 17px;
  color: var(--yuj-faq-ink);
  font-weight: 500;
}
.yuj-faq-question:focus-visible {
  outline: 2px solid var(--yuj-faq-accent);
  outline-offset: 4px;
}

.yuj-faq-toggle {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: var(--yuj-faq-icon-add);
  transition: transform 0.2s ease;
}
.yuj-faq-item[data-open="true"] .yuj-faq-toggle {
  background-image: var(--yuj-faq-icon-minus);
}

.yuj-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.yuj-faq-item[data-open="true"] .yuj-faq-answer {
  grid-template-rows: 1fr;
}
.yuj-faq-answer-inner {
  overflow: hidden;
}
.yuj-faq-answer p {
  margin: 0 0 22px;
  padding-right: 40px;
  color: var(--yuj-faq-muted);
  font-size: 15.5px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  :root {
    --yuj-site-header-height: 50px;
  }

  .yuj-faq-wrap {
    flex-direction: column;
    /* Keep the FAQ nav below the fixed 60px mobile header on first load. */
    padding: 30px 0 0 0;
    gap: 0;
  }
  nav.yuj-faq-nav {
    position: sticky;
    top: var(--yuj-site-header-height);
    z-index: 10;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--yuj-faq-line);
    padding: 20px 20px 16px;
    background: #fff;
    flex: 0 0 auto;
  }
  .yuj-faq-section {
    /* JavaScript calculates the exact nav height on click. */
    scroll-margin-top: calc(var(--yuj-site-header-height) + 80px);
    margin-bottom: 60px;
  }
  .yuj-faq-heading {
   margin: 30px 0px 0px 0px;
  }
  nav.yuj-faq-nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 20px;
  }
  nav.yuj-faq-nav ul::-webkit-scrollbar {
    display: none;
  }
  nav.yuj-faq-nav li {
    margin-bottom: 0;
  }
  nav.yuj-faq-nav a {
    white-space: nowrap;
  }
  .yuj-faq-main {
    padding: 0;
    margin-top: 30px;
  }
  .yuj-faq-section h2 {
    font-size: 26px;
    margin-bottom: 0px;
  }
}
@media (max-width: 767px) {
  .yuj-faq-heading, .yuj-faq-main{
    padding: 0px 20px;
    margin: 40px 0px 0px 0px;
  }
  nav.yuj-faq-nav{
    top:50px;
  }
}
@media (max-width: 480px) {
  .yuj-faq-question {
    font-size: 15.5px;
    padding: 16px 0;
  }
  .yuj-faq-answer p {
    font-size: 14.5px;
    padding-right: 20px;
  }
}
