@font-face {
    font-family: 'RHWPPretendard';
    src: url('/rhwp/web/fonts/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RHWPPretendard';
    src: url('/rhwp/web/fonts/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RHWPGowun';
    src: url('/rhwp/web/fonts/GowunBatang-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --rhwp-bg: #f5efe4;
    --rhwp-paper: rgba(255, 252, 247, 0.9);
    --rhwp-ink: #1f1a17;
    --rhwp-muted: #6b5b53;
    --rhwp-line: rgba(57, 36, 26, 0.14);
    --rhwp-accent: #b4432b;
    --rhwp-accent-deep: #7a2718;
    --rhwp-shadow: 0 24px 48px rgba(53, 30, 20, 0.12);
}

body.rhwp-body,
.rhwp-page {
    background:
        radial-gradient(circle at top left, rgba(180, 67, 43, 0.16), transparent 30%),
        linear-gradient(180deg, #f8f2e7 0%, #efe5d6 100%);
}

body.rhwp-body .improved-header {
    background:
        linear-gradient(180deg, rgba(248, 242, 231, 0.95), rgba(239, 229, 214, 0.9));
    border-bottom: 1px solid rgba(122, 39, 24, 0.12);
    box-shadow: 0 10px 24px rgba(53, 30, 20, 0.08);
}

body.rhwp-body .header-glass-bg {
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(239, 229, 214, 0.82));
    opacity: 1;
}

body.rhwp-body .main-navigation .nav-btn,
body.rhwp-body .header-right .login-btn,
body.rhwp-body .header-right .user-menu-toggle,
body.rhwp-body .header-right .notification-btn {
    color: var(--rhwp-accent-deep);
}

body.rhwp-body .main-navigation .nav-btn:hover,
body.rhwp-body .header-right .login-btn:hover,
body.rhwp-body .header-right .user-menu-toggle:hover,
body.rhwp-body .header-right .notification-btn:hover {
    background: transparent;
}

body.rhwp-body .logo,
body.rhwp-body .beta-badge {
    color: var(--rhwp-accent-deep);
}

.rhwp-page {
    color: var(--rhwp-ink);
    font-family: 'RHWPPretendard', sans-serif;
    padding: 70px 20px 56px;
}

.rhwp-hero,
.rhwp-frame,
.rhwp-notes {
    max-width: 1150px;
    margin: 0 auto;
}

.rhwp-hero {
    margin-bottom: 10px;
}

.rhwp-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rhwp-docs-label {
    color: var(--rhwp-accent-deep);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
}

.rhwp-hero__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.rhwp-page h1,
.rhwp-page h2,
.rhwp-page h3 {
    margin: 0;
    line-height: 1.08;
}

.rhwp-page h1 {
    font-family: 'RHWPGowun', serif;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: clamp(1.4rem, 1.65vw, 2rem);
    margin: 0;
}

.rhwp-beta {
    color: var(--rhwp-accent-deep);
    font-family: 'RHWPPretendard', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rhwp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rhwp-tab {
    appearance: none;
    border: 1px solid rgba(122, 39, 24, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--rhwp-ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 15px;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.rhwp-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(122, 39, 24, 0.4);
}

.rhwp-tab.is-active {
    background: linear-gradient(135deg, var(--rhwp-accent), var(--rhwp-accent-deep));
    border-color: transparent;
    color: #fff7f2;
}

.rhwp-tab--ghost {
    background: rgba(122, 39, 24, 0.08);
}

.rhwp-steps {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--rhwp-muted);
    line-height: 1.6;
}

.rhwp-note p {
    color: var(--rhwp-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

.rhwp-workbench__head h2,
.rhwp-note h3 {
    margin-top: 10px;
}

.rhwp-frame {
    display: block;
    width: 100%;
    min-height: 980px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    margin: 0 auto;
    box-shadow: 0 20px 44px rgba(53, 30, 20, 0.12);
}

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

.rhwp-note {
    background: var(--rhwp-paper);
    border: 1px solid var(--rhwp-line);
    border-radius: 24px;
    box-shadow: var(--rhwp-shadow);
    backdrop-filter: blur(12px);
    padding: 26px;
}

.rhwp-note a {
    color: var(--rhwp-accent-deep);
    font-weight: 700;
}

@media (max-width: 1080px) {
    .rhwp-notes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .rhwp-page {
        padding: 12px 14px 42px;
    }

    .rhwp-hero__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .rhwp-note {
        padding: 20px;
        border-radius: 22px;
    }

    .rhwp-frame {
        min-height: 760px;
    }
}
