/* ========================================
   UGC Guide (Contents Guideline) - v2
   This page is a static guideline layout that matches the provided design.
   ======================================== */

.ugc2 {
  padding-top: var(--nav-height);
  background: var(--bg);
}

.ugc2-hero {
  background: linear-gradient(180deg, #EEE9FF 0%, #EEE9FF 65%, #FFFFFF 100%);
  padding: 120px 0 56px;
  text-align: center;
}

.ugc2-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  color: #6b46ffc7;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 14px;
}

.ugc2-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 900;
  margin: 0;
  color: #000;
}

.ugc2-sub {
  margin: 16px auto 0;
  max-width: 720px;
  color: rgba(0,0,0,0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ugc2-topnav {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
}

.ugc2-topnav button {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 10px 6px;
  color: rgba(0,0,0,0.75);
  font-weight: 700;
  position: relative;
}

.ugc2-topnav button[aria-selected="true"] {
  color: #6B46FF;
}

.ugc2-topnav button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: #6B46FF;
}

.ugc2-body {
  padding: 0 0 90px;
}

.ugc2-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.ugc2-tab { display: none; }
.ugc2-tab.is-active { display: block; }

.ugc2-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 26px;
  padding: 30px;
  margin-top: 26px;
}

.ugc2-muted {
  color: rgba(0,0,0,0.72);
}

.ugc2-q {
  background: #FFFFFF;
  border-radius: 28px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 30px;
  margin-top: 26px;
}

.ugc2-q h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #111;
}

.ugc2-q p { margin: 0; line-height: 1.7; color: rgba(0,0,0,0.78); }

.ugc2-pillrow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ugc2-flag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.6);
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  font-weight: 800;
}

.ugc2-flag small {
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.75);
}

.ugc2-flag small.bad-danger { background: rgba(255,0,0,0.12); color: #A30000; }
.ugc2-flag small.bad-warn { background: rgba(0,0,0,0.12); color: rgba(0,0,0,0.75); }

.ugc2-steps {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
}

.ugc2-step {
  display: grid;
  grid-template-columns: 120px 160px 1fr;
  gap: 14px;
  padding: 14px 18px;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.ugc2-step:first-child { border-top: none; }
.ugc2-step:nth-child(1){ background: #FFF7E6; }
.ugc2-step:nth-child(2){ background: #FFF0E6; }
.ugc2-step:nth-child(3){ background: #FFECEC; }

.ugc2-step b { font-weight: 900; }

.ugc2-report {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ugc2-report .ugc2-report-item {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 9px; 
  padding: 16px;
  font-weight: 900;
}

.ugc2-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.ugc2-box {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.10);
}

.ugc2-box-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.ugc2-box-hd h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.ugc2-update {
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
}

.ugc2-box-bd {
  padding: 20px 22px 26px;
}

.ugc2-box-note {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 800;
  margin-bottom: 16px;
}

.ugc2-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
  color: rgba(0,0,0,0.82);
  font-weight: 600;
}

.ugc2-allow { background: #E9FAF0; }
.ugc2-allow .ugc2-update { background: #1D7D3A; }
.ugc2-allow .ugc2-box-note { background: rgba(29,125,58,0.10); color: #1D7D3A; }

.ugc2-ban { background: #FCEEEE; }
.ugc2-ban .ugc2-update { background: #D12B2B; }
.ugc2-ban .ugc2-box-note { background: rgba(209,43,43,0.10); color: #D12B2B; }

.ugc2-pend { background: #FFF3E6; }
.ugc2-pend .ugc2-update { background: #E08900; }

.ugc2-seg {
  margin: 26px auto 0;
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(107,70,255,0.10);
  border-radius: 999px;
  padding: 10px;
}

.ugc2-seg button {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 16px 14px;
  font-weight: 900;
  cursor: pointer;
}

.ugc2-seg button[aria-selected="true"] {
  background: #6B46FF;
  color: #fff;
}

.ugc2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.ugc2-fig {
  margin: 0;
}

.ugc2-fig .ugc2-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(0,0,0,0.06);
}

.ugc2-cap {
  margin-top: 10px;
  font-weight: 900;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.85);
  text-align: center;
}

.ugc2-rule {
  margin-top: 28px;
}

.ugc2-rule-hd {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.ugc2-rule-num {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(107,70,255,0.14);
  color: #6B46FF;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.ugc2-rule-ttl {
  font-weight: 900;
  font-size: 1.2rem;
  color: #111;
}

.ugc2-outline {
  border-radius: 28px;
  border: 1px solid rgba(0,0,0,0.12);
  overflow: hidden;
}

.ugc2-outline-hd {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  font-weight: 900;
  font-size: 1.1rem;
  background: rgba(255,255,255,0.75);
}

.ugc2-outline-bd {
  padding: 22px;
  background: #fff;
}

.ugc2-outline-bd .ugc2-grid { margin-top: 0; }

.ugc2-x { color: #000; font-weight: 900; }
.ugc2-o { color: #000; font-weight: 900; }


/* ===== Post guide summary (matches design for "공통 가이드") ===== */
.ugc2-summary{
  margin-top: 22px;
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: rgba(0,0,0,0.10);
}
.ugc2-summary-hd{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.ugc2-summary-ttl{
  margin: 0;
  font-weight: 900;
  font-size: 0.98rem;
  color: rgba(0,0,0,0.85);
}
.ugc2-summary-date{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  color: rgba(0,0,0,0.80);
  font-size: 0.75rem;
  font-weight: 800;
}
.ugc2-summary-desc{
  margin: 12px 0 14px;
  color: rgba(0,0,0,0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}
.ugc2-summary-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ugc2-summary-item{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #F4F1FF;
}
.ugc2-summary-ic{
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-top: 1px;
}
.ugc2-summary-item b{
  display: block;
  font-weight: 900;
  font-size: 0.9rem;
  color: rgba(0,0,0,0.85);
}
.ugc2-summary-item small{
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: rgba(0,0,0,0.55);
}

/* divider between numbered sections */
.ugc2-divider{
  border: none;
  border-top: 1px solid rgba(0,0,0,0.10);
  margin: 18px 0;
}

html[data-theme="dark"] .ugc2 {
  background: var(--bg);
}
html[data-theme="dark"] .ugc2-hero {
  background: linear-gradient(160deg, #0D0520 0%, #1A0A3E 55%, #0D0520 100%);
}
html[data-theme="dark"] .ugc2-pill {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}
html[data-theme="dark"] .ugc2-title { color: #fff; }
html[data-theme="dark"] .ugc2-sub { color: rgba(255,255,255,0.75); }
html[data-theme="dark"] .ugc2-topnav button { color: rgba(255,255,255,0.75); }
html[data-theme="dark"] .ugc2-q { background: rgba(255,255,255,0.08); }
html[data-theme="dark"] .ugc2-q h3 { color: #fff; }
html[data-theme="dark"] .ugc2-q p { color: rgba(255,255,255,0.78); }
html[data-theme="dark"] .ugc2-flag { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.90); }
html[data-theme="dark"] .ugc2-flag small { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.85); }
html[data-theme="dark"] .ugc2-steps { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }
html[data-theme="dark"] .ugc2-step { border-top-color: rgba(255,255,255,0.12); }
html[data-theme="dark"] .ugc2-step:nth-child(1),
html[data-theme="dark"] .ugc2-step:nth-child(2),
html[data-theme="dark"] .ugc2-step:nth-child(3){ background: rgba(255,255,255,0.06); }
html[data-theme="dark"] .ugc2-report .ugc2-report-item{ background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.90); }
html[data-theme="dark"] .ugc2-box{ border-color: rgba(255,255,255,0.12); }
html[data-theme="dark"] .ugc2-box-hd{ border-bottom-color: rgba(255,255,255,0.12); }
html[data-theme="dark"] .ugc2-list{ color: rgba(255,255,255,0.80); }
html[data-theme="dark"] .ugc2-outline{ border-color: rgba(255,255,255,0.14); }
html[data-theme="dark"] .ugc2-outline-hd{ background: rgba(255,255,255,0.06); border-bottom-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.92); }
html[data-theme="dark"] .ugc2-outline-bd{ background: rgba(255,255,255,0.02); }
html[data-theme="dark"] .ugc2-cap{ color: rgba(255,255,255,0.86); }
html[data-theme="dark"] .ugc2-rule-ttl{ color: rgba(255,255,255,0.92); }
html[data-theme="dark"] .ugc2-fig .ugc2-img{ border-color: rgba(255,255,255,0.14); background: rgba(255, 255, 255, 0); }


html[data-theme="dark"] .ugc2-summary{
  background: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .ugc2-summary-ttl{
  color: rgba(255,255,255,0.92);
}
html[data-theme="dark"] .ugc2-summary-date{
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.88);
}
html[data-theme="dark"] .ugc2-summary-desc{
  color: rgba(255,255,255,0.75);
}
html[data-theme="dark"] .ugc2-summary-item{
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.14);
}
html[data-theme="dark"] .ugc2-summary-ic{
  background: rgba(255, 255, 255, 0);
}
html[data-theme="dark"] .ugc2-summary-item b{
  color: rgba(255,255,255,0.92);
}
html[data-theme="dark"] .ugc2-summary-item small{
  color: rgba(255,255,255,0.60);
}
html[data-theme="dark"] .ugc2-divider{
  border-top-color: rgba(255,255,255,0.12);
}

@media (max-width: 900px) {
  .ugc2-topnav { gap: 18px; }
  .ugc2-pillrow { grid-template-columns: 1fr; }
  .ugc2-report { grid-template-columns: 1fr; }
  .ugc2-split { grid-template-columns: 1fr; }
  .ugc2-grid { grid-template-columns: 1fr; }
  .ugc2-seg { grid-template-columns: 1fr; border-radius: 26px; }
  .ugc2-seg button { padding: 14px 12px; }
  .ugc2-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ugc2-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 6px;
    padding: 16px 18px;
    align-items: start;
  }
  .ugc2-step b:first-child {
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
  }
  .ugc2-step b:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .ugc2-step span {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(0,0,0,0.65);
    line-height: 1.55;
    word-break: keep-all;
  }
}

html[data-theme="dark"] .ugc2-step span {
  color: rgba(255,255,255,0.65);
}

@media (max-width: 520px) {
  .ugc2-summary-grid { grid-template-columns: 1fr; }
}

/* TAB: Common — make list text 1px smaller */
div[data-ugc-panel="common"] .ugc2-list li{
  font-size: calc(1rem - 1px) !important;
}

/* Dark theme: Common tab text colors */
html[data-theme="dark"] div[data-ugc-panel="common"] .ugc2-box-hd h3{
  color: #0B0B0B !important;
}

/* Dark theme: Common tab list text colors */
html[data-theme="dark"] div[data-ugc-panel="common"] .ugc2-list li{
  color: #0B0B0B !important;
}

.ugc2-last-update {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(107, 70, 255, 0.10);
  border: 1px solid rgba(107, 70, 255, 0.16);
  color: #6B46FF;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[data-theme="dark"] .ugc2-last-update {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 900px) {
  .ugc2-last-update {
    margin-top: 16px;
    padding: 9px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 520px) {
  .ugc2-last-update {
    max-width: calc(100% - 32px);
    padding: 8px 12px;
    font-size: 0.76rem;
    white-space: nowrap;
  }
}