/* CueClass site — shared showcase pieces: the "one projector, six tabs" feature switcher (showcase.js),
   chip rows, and the folded lists (details / summary, keyboard-operable by default). Used by the home
   page, features.html and themes.html. */

/* ---------------------------------------------------------------- chips */

.chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d5dce5;
  border-radius: 999px;
  font-family: var(--sv-cjk);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--sv-ink);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms, border-color 160ms, color 160ms;
}

.chip:hover {
  color: var(--sv-ink);
  border-color: var(--sv-ink);
}

.chip[aria-selected="true"],
.chip[aria-current="true"] {
  color: #fff;
  background: var(--sv-ink);
  border-color: var(--sv-ink);
}

.chip:focus-visible {
  outline: 2px solid var(--sv-ink);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- one projector, six tabs */

.fx .sv-projector {
  width: min(100%, 1040px);
}

.fx-screen > img {
  opacity: 0;
  transition: opacity 250ms ease;
}

.fx-screen > img.is-on {
  opacity: 1;
}

.fx-cap {
  padding: 14px 8px 6px;
  font-family: var(--sv-cjk);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--sv-muted);
}

.fx-cap b {
  font-weight: 700;
  color: var(--sv-ink);
}

.fx-cap b::after {
  content: "｜";
  margin: 0 4px;
  font-weight: 400;
  color: #c3ccd7;
}

/* phones and small tablets: one scrolling row of chips, the screen full width, no auto-advance */
@media (max-width: 959px) {
  .chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 2px 16px 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    scroll-snap-align: center;
  }

  .fx .sv-projector {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-screen > img {
    transition: none;
  }
}

/* ---------------------------------------------------------------- customise v18: a short intro, every item folded */

.ac-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  max-width: 1040px;
  margin: 0 auto;
}

.ac-title {
  margin: 0 0 10px;
  font-family: var(--sv-cjk);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sv-muted);
}

.ac {
  border-top: 1px solid var(--sv-line);
}

.ac:last-child {
  border-bottom: 1px solid var(--sv-line);
}

.ac summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-family: var(--sv-cjk);
  font-size: 1.075rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sv-ink);
  cursor: pointer;
  list-style: none;
}

.ac summary::-webkit-details-marker {
  display: none;
}

.ac summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--sv-ease);
}

.ac[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.ac summary:hover {
  color: #1e293b;
}

.ac summary:focus-visible {
  outline: 2px solid var(--sv-ink);
  outline-offset: 2px;
  border-radius: 6px;
}

.ac ul {
  margin: 0;
  padding: 0 4px 18px;
  list-style: none;
}

.ac li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-family: var(--sv-cjk);
  font-size: 0.975rem;
  line-height: 1.7;
  letter-spacing: 0.045em;
  color: var(--sv-muted);
}

.ac li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c2cf;
}

.ac li .cu-star {
  margin-left: -2px;
}

@media (max-width: 760px) {
  .ac-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}


.ac-cols.ac-one {
  grid-template-columns: 1fr;
  max-width: 760px;
}

/* ---------------------------------------------------------------- features.html */

.fp-head {
  padding: clamp(56px, 7vw, 96px) 0 clamp(20px, 3vw, 32px);
  text-align: center;
}

.fp-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.fp-head .sv-sub {
  max-width: 40em;
  margin-inline: auto;
}

/* the chip row stays under the header while reading */
.fp-nav {
  position: sticky;
  top: 64px;
  z-index: 50;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sv-hairline);
}

.fp-nav .chips {
  margin: 0;
}

.fp-row {
  padding-block: clamp(48px, 6vw, 88px);
  scroll-margin-top: 140px;
}

.fp-row + .fp-row {
  border-top: 1px solid var(--sv-line);
}

#settings {
  scroll-margin-top: 140px;
}

.fp-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
}

.fp-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #1b1f27;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 30px 60px -36px rgba(15, 23, 42, 0.35);
}

.fp-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.fp-name {
  margin: 0 0 12px;
  font-family: var(--sv-cjk);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.fp-line {
  margin: 0;
  font-family: var(--sv-cjk);
  font-size: 1.1rem;
  line-height: 1.75;
  letter-spacing: 0.045em;
  color: var(--sv-ink);
}

.fp-label {
  margin: 24px 0 6px;
  font-family: var(--sv-cjk);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sv-muted);
}

.fp-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fp-points li {
  position: relative;
  padding: 8px 0 8px 18px;
  font-family: var(--sv-cjk);
  line-height: 1.65;
  letter-spacing: 0.045em;
  color: var(--sv-muted);
  border-top: 1px solid #eef1f5;
}

.fp-points li:first-child {
  border-top: 0;
}

.fp-points li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1.15em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c2cf;
}

.ac-effects h4 {
  margin: 10px 4px 2px;
  font-family: var(--sv-cjk);
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sv-ink);
}

.ac-effects ul {
  padding-bottom: 6px;
}

.fp-settings {
  border-top: 1px solid var(--sv-line);
}

.fp-notice-wrap {
  padding-top: 0;
}

.fp-notice {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 32px;
  border: 1px solid var(--sv-line);
  border-radius: 20px;
  background: #fff;
}

.fp-notice h2 {
  margin: 0 0 8px;
  font-family: var(--sv-cjk);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fp-notice p {
  margin: 0;
  font-family: var(--sv-cjk);
  line-height: 1.75;
  letter-spacing: 0.045em;
  color: var(--sv-muted);
}

@media (max-width: 959px) {
  .fp-grid {
    grid-template-columns: 1fr;
  }

  .fp-row {
    scroll-margin-top: 130px;
  }
}

/* ---------------------------------------------------------------- features.html v21: result ↔ the setting that made it */

.fp-grid {
  align-items: start;
}

.fp-shot {
  position: sticky;
  top: 140px;
}

.fp-set {
  position: relative;
  margin: 22px 0 0;
  padding: 0;
  border: 1px solid var(--sv-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.fp-set-cap {
  padding: 10px 16px;
  font-family: var(--sv-cjk);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--sv-muted);
  border-bottom: 1px solid var(--sv-line);
  background: #f8fafc;
}

.fp-set-img {
  position: relative;
  max-height: 380px;
  overflow: hidden;
  padding: 14px 16px 0;
}

/* long panels fade out at the bottom: the shot shows the top of the real panel */
.fp-set-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.fp-set-img img {
  display: block;
  width: 100%;
  height: auto;
}

.fp-callouts {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: co;
}

.fp-callouts li {
  position: relative;
  padding: 7px 0 7px 34px;
  font-family: var(--sv-cjk);
  font-size: var(--t-body);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--sv-muted);
}

.fp-callouts li::before {
  counter-increment: co;
  content: counter(co);
  position: absolute;
  left: 0;
  top: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: var(--sv-latin);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--sv-ink);
}

@media (max-width: 959px) {
  .fp-shot {
    position: static;
  }

  .fp-set-img {
    max-height: 320px;
  }
}

/* (QA S-2) pictures that load on approach: until then a quiet block the colour of the frame — no alt
   text or broken-image icon in captures / print; the width and height attributes keep the shape */
.fp-shot img[data-late-src],
.fp-set-img img[data-late-src] {
  color: transparent;
  font-size: 0;
  width: 100%;
  height: auto;
  opacity: 0;
}

/* the frame shows through: .fp-shot is already #1b1f27; the settings panel gets a light block */
.fp-set-img:has(img[data-late-src]) {
  background: linear-gradient(#f1f5f9, #f1f5f9) 16px 14px / calc(100% - 32px) 100% no-repeat;
}
