.lwlhs-qa-directory,
.lwlhs-qa-single,
.lwlhs-qa-editor-state {
  --lwlhs-qa-ink: #1e1e1e;
  --lwlhs-qa-red: #b10d0d;
  --lwlhs-qa-deep-red: #8a1414;
  --lwlhs-qa-paper: #faf8f4;
  --lwlhs-qa-soft-red: #fff5f3;
  --lwlhs-qa-rule: #dedede;
  --lwlhs-qa-muted: #6f6f6f;
  color: var(--lwlhs-qa-ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.lwlhs-qa-directory *,
.lwlhs-qa-single * {
  box-sizing: border-box;
}

.lwlhs-qa-directory {
  position: relative;
  overflow: hidden;
  margin-block: 0;
  background: transparent;
}

.lwlhs-qa-directory::before {
  position: absolute;
  inset: 0 auto 0 clamp(16px, 8vw, 150px);
  width: 1px;
  background: rgba(177, 13, 13, .12);
  content: "";
  pointer-events: none;
}

.lwlhs-qa-directory__inner,
.lwlhs-qa-single__inner {
  position: relative;
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.lwlhs-qa-directory__inner {
  padding-block: clamp(64px, 8vw, 116px);
}

.lwlhs-qa-directory__header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: end;
  gap: clamp(30px, 7vw, 96px);
  padding-bottom: clamp(34px, 5vw, 60px);
}

.lwlhs-qa-eyebrow {
  margin: 0 0 14px;
  color: var(--lwlhs-qa-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
}

.lwlhs-qa-directory h1,
.lwlhs-qa-single h1,
.lwlhs-qa-directory h2,
.lwlhs-qa-single h2 {
  font-family: "Noto Serif TC", "Songti TC", PMingLiU, serif;
}

.lwlhs-qa-directory h1,
.lwlhs-qa-single h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.18;
}

.lwlhs-qa-directory__intro {
  max-width: 44rem;
  margin: 0;
  color: var(--lwlhs-qa-muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.9;
}

.lwlhs-qa-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .36fr) auto;
  align-items: end;
  gap: 14px;
  border-top: 3px solid var(--lwlhs-qa-red);
  padding: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(30, 30, 30, .055);
}

.lwlhs-qa-filter label {
  display: grid;
  gap: 8px;
}

.lwlhs-qa-filter label > span {
  color: var(--lwlhs-qa-ink);
  font-size: 13px;
  font-weight: 850;
}

.lwlhs-qa-filter input,
.lwlhs-qa-filter select,
.lwlhs-qa-filter button {
  min-height: 48px;
  border: 1px solid var(--lwlhs-qa-rule);
  border-radius: 0;
  font: inherit;
}

.lwlhs-qa-filter input,
.lwlhs-qa-filter select {
  width: 100%;
  padding: 10px 14px;
  color: var(--lwlhs-qa-ink);
  background: #fff;
}

.lwlhs-qa-filter button {
  cursor: pointer;
  padding: 10px 22px;
  border-color: var(--lwlhs-qa-red);
  color: #fff;
  background: var(--lwlhs-qa-red);
  font-weight: 850;
  transition: background 180ms ease, border-color 180ms ease;
}

.lwlhs-qa-filter button:hover {
  border-color: var(--lwlhs-qa-deep-red);
  background: var(--lwlhs-qa-deep-red);
}

.lwlhs-qa-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.lwlhs-qa-topics a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--lwlhs-qa-rule);
  padding: 8px 15px;
  color: var(--lwlhs-qa-muted);
  background: rgba(255, 255, 255, .75);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.lwlhs-qa-topics a:hover,
.lwlhs-qa-topics a[aria-current="page"] {
  border-color: var(--lwlhs-qa-red);
  color: #fff;
  background: var(--lwlhs-qa-red);
}

.lwlhs-qa-results {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(28px, 5vw, 52px);
  border-block: 1px solid var(--lwlhs-qa-rule);
  color: var(--lwlhs-qa-muted);
  font-size: 14px;
}

.lwlhs-qa-results p {
  margin: 0;
}

.lwlhs-qa-results strong {
  margin-right: 5px;
  color: var(--lwlhs-qa-ink);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.lwlhs-qa-results a,
.lwlhs-qa-empty a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--lwlhs-qa-red);
  font-weight: 850;
  text-underline-offset: 4px;
}

.lwlhs-qa-row {
  margin: 0;
  border-bottom: 1px solid var(--lwlhs-qa-rule);
}

.lwlhs-qa-row__link {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 48px;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  min-height: 148px;
  padding: 24px 4px;
  color: var(--lwlhs-qa-ink);
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease, background 180ms ease;
}

.lwlhs-qa-row__link:hover {
  padding-inline: 14px;
  color: var(--lwlhs-qa-red);
  background: linear-gradient(90deg, rgba(177, 13, 13, .025), transparent 75%);
}

.lwlhs-qa-row__index {
  align-self: start;
  padding-top: 4px;
  color: var(--lwlhs-qa-red);
  font-family: Georgia, serif;
  font-size: 17px;
  letter-spacing: .08em;
}

.lwlhs-qa-row__copy {
  display: grid;
  gap: 9px;
}

.lwlhs-qa-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--lwlhs-qa-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.lwlhs-qa-sample {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(177, 13, 13, .22);
  padding: 3px 8px;
  color: var(--lwlhs-qa-red);
  background: var(--lwlhs-qa-soft-red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
}

.lwlhs-qa-row h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 800;
  line-height: 1.48;
}

.lwlhs-qa-row__answer {
  color: var(--lwlhs-qa-muted);
  font-size: 14px;
  line-height: 1.75;
}

.lwlhs-qa-row__action {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--lwlhs-qa-rule);
  color: var(--lwlhs-qa-red);
  font-size: 20px;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.lwlhs-qa-row__link:hover .lwlhs-qa-row__action {
  border-color: var(--lwlhs-qa-red);
  color: #fff;
  background: var(--lwlhs-qa-red);
}

.lwlhs-qa-empty {
  border-bottom: 1px solid var(--lwlhs-qa-rule);
  padding: 54px 0;
  text-align: center;
}

.lwlhs-qa-empty h2 {
  margin: 0;
  font-size: 28px;
}

.lwlhs-qa-empty p {
  margin: 12px 0 0;
  color: var(--lwlhs-qa-muted);
}

.lwlhs-qa-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.lwlhs-qa-pagination a {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--lwlhs-qa-rule);
  color: var(--lwlhs-qa-ink);
  background: #fff;
  font-weight: 850;
  text-decoration: none;
}

.lwlhs-qa-pagination a:hover,
.lwlhs-qa-pagination a[aria-current="page"] {
  border-color: var(--lwlhs-qa-red);
  color: #fff;
  background: var(--lwlhs-qa-red);
}

.lwlhs-qa-single {
  margin-block: 0;
  background: transparent;
}

.lwlhs-qa-single__inner {
  padding-block: clamp(40px, 7vw, 92px) clamp(72px, 9vw, 126px);
}

.lwlhs-qa-breadcrumb {
  display: flex;
  min-height: 44px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--lwlhs-qa-muted);
  font-size: 13px;
}

.lwlhs-qa-breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--lwlhs-qa-red);
  font-weight: 800;
  text-underline-offset: 4px;
}

.lwlhs-qa-answer-header {
  max-width: 880px;
  margin-top: clamp(30px, 5vw, 66px);
}

.lwlhs-qa-answer-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--lwlhs-qa-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
}

.lwlhs-qa-single h1 {
  max-width: 20ch;
  font-size: clamp(35px, 5.3vw, 66px);
  line-height: 1.24;
}

.lwlhs-qa-answer-first {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 68px);
  max-width: 980px;
  margin-top: clamp(38px, 6vw, 72px);
  border-block: 1px solid rgba(177, 13, 13, .28);
  padding: clamp(26px, 4vw, 44px);
  background: var(--lwlhs-qa-soft-red);
}

.lwlhs-qa-answer-first > p {
  margin: 0;
  color: var(--lwlhs-qa-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
}

.lwlhs-qa-answer-first > div {
  max-width: 68ch;
  font-family: "Noto Serif TC", "Songti TC", PMingLiU, serif;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.75;
}

.lwlhs-qa-section {
  max-width: 75ch;
  margin-top: clamp(52px, 7vw, 82px);
}

.lwlhs-qa-section > h2 {
  margin: 0 0 24px;
  border-bottom: 1px solid var(--lwlhs-qa-rule);
  padding-bottom: 14px;
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.35;
}

.lwlhs-qa-prose {
  color: #343434;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.95;
}

.lwlhs-qa-prose > * {
  margin-block: 0 1.2em;
}

.lwlhs-qa-key-points ol,
.lwlhs-qa-related ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lwlhs-qa-key-points ol {
  counter-reset: qa-points;
}

.lwlhs-qa-key-points li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--lwlhs-qa-rule);
  padding: 20px 0;
  counter-increment: qa-points;
}

.lwlhs-qa-key-points li::before {
  color: var(--lwlhs-qa-red);
  content: "0" counter(qa-points);
  font-family: Georgia, serif;
}

.lwlhs-qa-key-points strong,
.lwlhs-qa-key-points span {
  display: block;
  grid-column: 2;
}

.lwlhs-qa-key-points span {
  margin-top: 6px;
  color: var(--lwlhs-qa-muted);
  line-height: 1.8;
}

.lwlhs-qa-related a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--lwlhs-qa-rule);
  color: var(--lwlhs-qa-ink);
  font-family: "Noto Serif TC", "Songti TC", PMingLiU, serif;
  font-weight: 700;
  text-decoration: none;
}

.lwlhs-qa-related a:hover {
  color: var(--lwlhs-qa-red);
}

.lwlhs-qa-cta {
  max-width: 75ch;
  margin-top: 54px;
}

.lwlhs-qa-cta a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  color: #fff;
  background: var(--lwlhs-qa-red);
  font-weight: 850;
  text-decoration: none;
}

.lwlhs-qa-editor-state {
  display: grid;
  gap: 8px;
  border: 1px solid var(--lwlhs-qa-rule);
  border-top: 3px solid var(--lwlhs-qa-red);
  padding: 28px;
  background: var(--lwlhs-qa-paper);
}

.lwlhs-qa-editor-state span {
  color: var(--lwlhs-qa-muted);
}

.lwlhs-qa-directory a:focus-visible,
.lwlhs-qa-directory button:focus-visible,
.lwlhs-qa-directory input:focus-visible,
.lwlhs-qa-directory select:focus-visible,
.lwlhs-qa-single a:focus-visible {
  outline: 3px solid var(--lwlhs-qa-red);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .lwlhs-qa-directory__header,
  .lwlhs-qa-filter {
    grid-template-columns: 1fr;
  }

  .lwlhs-qa-directory__header {
    align-items: start;
    gap: 22px;
  }

  .lwlhs-qa-filter button {
    justify-self: start;
  }

  .lwlhs-qa-answer-first {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .lwlhs-qa-directory__inner,
  .lwlhs-qa-single__inner {
    width: min(100% - 28px, 1180px);
  }

  .lwlhs-qa-directory::before {
    left: 14px;
  }

  .lwlhs-qa-filter {
    margin-inline: -2px;
    padding: 18px;
  }

  .lwlhs-qa-filter button {
    width: 100%;
  }

  .lwlhs-qa-results {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 10px;
  }

  .lwlhs-qa-row__link {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    min-height: 154px;
  }

  .lwlhs-qa-row__action {
    display: none;
  }

  .lwlhs-qa-answer-first {
    margin-inline: -2px;
    padding: 24px 20px;
  }

  .lwlhs-qa-key-points li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lwlhs-qa-directory *,
  .lwlhs-qa-directory *::before,
  .lwlhs-qa-directory *::after,
  .lwlhs-qa-single *,
  .lwlhs-qa-single *::before,
  .lwlhs-qa-single *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
