/* Shared UI foundation for realtyforum (clean gov look) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --font-scale: 1;
  --gok-blue: #00376c;
  --gok-red: #e4032e;
  --gok-gray: #575757;
  --ink: #1b1f24;
  --muted: #5c6670;
  --line: #d8dee6;
  --paper: #ffffff;
  --canvas: #f4f6f9;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 55, 108, 0.08);
  --container: 1080px;
  --rf-font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--rf-font);
  font-size: calc(1.05rem * var(--font-scale, 1));
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
}

.rf-auth,
.rf-privacy,
.rf-del,
#rf-wrap,
#bo_list.rf-opinion,
#bo_w.rf-opinion,
#bo_v.rf-opinion {
  font-family: var(--rf-font);
  font-size: calc(1.05rem * var(--font-scale, 1));
}

.rf-profanity-mark {
  background: #fff3bf;
  outline: 2px solid #e67700;
  padding: 0 0.1em;
}

#rf-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--rf-bg, var(--canvas));
  color: var(--rf-text, var(--ink));
}

.rf-container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Brand */
.rf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  max-width: 100%;
}

.rf-brand-logo {
  flex: 0 0 auto;
  width: auto;
  height: 40px;
  max-width: min(167px, 38vw);
}

.rf-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  margin-left: 0.85rem;
  padding-left: 0.85rem;
  border-left: 1px solid #c5d0de;
}

.rf-brand-site {
  display: block;
  font-size: clamp(0.82rem, 2.2vw, 0.98rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #1b1f24;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  opacity: 1;
}

.rf-brand-tag {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  color: #5c6670;
  letter-spacing: -0.01em;
}

/* Header */
.rf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.2) blur(8px);
}

.rf-header-inner {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rf-header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
}

.rf-nav {
  display: flex;
  gap: 0.5rem;
}

.rf-design-switch {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.18rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.rf-design-link {
  display: inline-flex;
  min-width: 2rem;
  height: 1.85rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  color: inherit !important;
  opacity: 0.88;
}

.rf-design-link.is-active {
  background: #fff;
  color: var(--gok-blue) !important;
  opacity: 1;
}

/* Light headers (friendly) use a soft panel */
.rf-theme-friendly .rf-design-switch {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.14);
}

.rf-theme-friendly .rf-design-link.is-active {
  background: #0f766e;
  color: #fff !important;
}

/* Buttons */
.rf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--gok-blue);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  transition: background 0.15s ease, transform 0.15s ease;
}

.rf-cta:hover {
  background: #002a54;
}

.rf-cta-outline {
  background: transparent !important;
  border-color: currentColor;
  color: inherit !important;
}

.rf-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.rf-cta-ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

.rf-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

.rf-demo-tag {
  display: inline-flex;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.rf-cta-bottom-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rf-cta-bottom-org {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0.78;
}

.rf-footer-inner {
  justify-content: space-between;
}

.rf-footer-brand,
.rf-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}

.rf-footer-logo {
  flex: 0 0 auto;
  width: auto;
  height: 32px;
  max-width: 140px;
  background: #fff;
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
}

.rf-footer-copy {
  font-size: 0.9rem;
  color: #c9d3df;
}

.rf-footer-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
}

.rf-main {
  flex: 1;
  width: 100%;
}

/* Shared sections */
.rf-hero {
  padding: 2.75rem 0 2.25rem;
}

.rf-hero-inner,
.rf-steps,
.rf-section {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.rf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rf-period-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.rf-hero-title {
  margin: 0.85rem 0 0.85rem;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.rf-hero-desc {
  margin: 0 0 1.4rem;
  max-width: 38rem;
  font-size: 1.05rem;
  color: inherit;
  opacity: 0.92;
}

.rf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.rf-section-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rf-steps {
  padding: 2rem 0 2.5rem;
}

.rf-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.rf-steps-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  min-width: 0;
}

.rf-step-num {
  display: inline-flex;
  width: 1.85rem;
  height: 1.85rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.rf-steps-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.rf-steps-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.rf-cta-bottom {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.rf-cta-bottom-inner {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.rf-cta-bottom p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.rf-footer {
  background: #132033;
  color: #c9d3df;
  padding: 1.4rem 0;
  font-size: 0.92rem;
}

.rf-footer a {
  color: #fff;
  text-decoration: none;
}

.rf-footer a:hover {
  text-decoration: underline;
}

.rf-footer-inner {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}

.rf-sep {
  opacity: 0.45;
}

.rf-magnifier {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: flex;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem;
  box-shadow: var(--shadow);
}

.rf-magnifier button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 3rem;
  color: var(--ink);
}

.rf-magnifier button[aria-pressed="true"] {
  background: var(--gok-blue);
  color: #fff;
}

@media (max-width: 900px) {
  .rf-steps-list {
    grid-template-columns: 1fr;
  }

  .rf-header-right {
    width: auto;
  }
}

@media (max-width: 640px) {
  .rf-header-inner {
    flex-wrap: wrap;
  }

  .rf-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .rf-cta-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
