/* test/membership.html — 섹션 밝은 배경 · 어두운 전경 (가시성 우선) */

.right.sub-page .mbr-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ti-text);
}

.mbr-acc {
  margin: 0;
  border: 1px solid var(--ti-border);
  border-radius: 0;
  background: var(--ti-surface);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--ti-text);
}

.mbr-acc[open] {
  border-color: #9a7b1a;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.mbr-static {
  margin: 0;
  border: 1px solid #9a7b1a;
  border-radius: 0;
  background: var(--ti-surface);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--ti-text);
}

.mbr-static__head {
  margin: 0;
  padding: 18px 20px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ti-text-strong);
  background: var(--ti-surface-alt);
  border-bottom: 1px solid var(--ti-border);
}

.mbr-static .mbr-acc__panel {
  border-top: none;
}

.mbr-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ti-text-strong);
  background: var(--ti-surface-alt);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mbr-acc summary::-webkit-details-marker {
  display: none;
}

.mbr-acc summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ti-text-muted);
  border-bottom: 2px solid var(--ti-text-muted);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
  margin-top: -4px;
}

.mbr-acc[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.mbr-acc summary:hover {
  background: #e8e8e8;
}

.mbr-acc summary:focus-visible {
  outline: 2px solid var(--ti-accent);
  outline-offset: 2px;
}

.mbr-acc__panel {
  padding: 0 20px 20px;
  border-top: 1px solid #d8d8d8;
  background: var(--ti-surface);
  color: var(--ti-text);
}

.mbr-acc__panel-inner {
  padding-top: 18px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ti-text);
}

.mbr-acc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mbr-acc__list > li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 0.85rem;
  color: var(--ti-text);
}

.mbr-acc__list > li:last-child {
  margin-bottom: 0;
}

.mbr-acc__list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ti-accent);
}

.mbr-acc__subhead {
  margin: 1.25rem 0 10px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ti-text-strong);
}

.mbr-acc__subhead:first-child {
  margin-top: 0;
}

.mbr-acc__dash-list {
  margin: 0 0 0 0.2rem;
  padding: 0;
  list-style: none;
}

.mbr-acc__dash-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--ti-text-secondary);
}

.mbr-acc__dash-list li:last-child {
  margin-bottom: 0;
}

.mbr-acc__dash-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--ti-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.mbr-acc__callout {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--ti-border);
  background: var(--ti-surface-alt);
  text-align: justify;
  text-justify: inter-word;
}

.mbr-acc__callout-note {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ti-text-strong);
}

.mbr-acc__callout-note--inline {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--ti-text-secondary);
}

.mbr-acc__callout-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  list-style: disc;
  color: var(--ti-text-secondary);
  font-size: 0.88rem;
}

.mbr-acc__callout-list li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.mbr-acc__callout-list li:last-child {
  margin-bottom: 0;
}

.mbr-acc__panel-inner--disclosure {
  text-align: justify;
  text-justify: inter-word;
}

.mbr-acc__doc-link-wrap {
  margin: 0 0 14px;
}

.mbr-acc__doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 5px;
  border: 1px solid var(--ti-border);
  background: var(--ti-surface-alt);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ti-text-strong);
  text-decoration: none;
}

.mbr-acc__doc-link:hover {
  color: var(--ti-text-strong);
  border-color: var(--ti-accent);
  background: #e8e8e8;
}

.mbr-acc__doc-link::after {
  content: "↗";
  font-size: 0.95rem;
  text-decoration: none;
}

.mbr-acc__paragraph {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ti-text-secondary);
}

.mbr-acc__paragraph:last-of-type {
  margin-bottom: 0;
}

.mbr-acc__subhead--report {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  position: relative;
}

.mbr-acc__subhead--report::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(
    90deg,
    var(--ti-accent) 0%,
    var(--ti-border) 30%,
    color-mix(in srgb, var(--ti-border) 55%, transparent) 65%,
    transparent 100%
  );
}

.mbr-acc__link-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.mbr-acc__link-list li {
  margin: 0;
}

.mbr-acc__link-list li:last-child {
  margin-bottom: 0;
}

.mbr-acc__link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ti-text-strong);
  border-radius: 5px;
  border: 1px solid var(--ti-border);
  background: var(--ti-surface-alt);
  text-decoration: none;
  white-space: nowrap;
}

.mbr-acc__link-list a:hover {
  color: var(--ti-text-strong);
  border-color: var(--ti-accent);
  background: #e8e8e8;
}

.mbr-cms-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 20px;
  border-radius: 5px;
  border: 1px solid #9a7b1a;
  background: var(--ti-surface-alt);
  color: var(--ti-text-strong);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.mbr-cms-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--ti-accent);
  background: #e8e8e8;
  color: var(--ti-text-strong);
}

.mbr-cms-link:focus-visible {
  outline: 2px solid var(--ti-accent);
  outline-offset: 3px;
}

.mbr-cms-link::after {
  content: "↗";
  font-size: 1rem;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .mbr-acc summary {
    padding: 16px 16px;
    font-size: 0.92rem;
  }
  .mbr-acc__panel {
    padding: 0 16px 16px;
  }
  .mbr-static__head {
    padding: 16px 16px;
    font-size: 0.92rem;
  }
}
