/* PHP integration only. Component geometry is owned by civil/*.css. */
.family-civil-page{margin:0;padding:0;font-size:16px;font-weight:400;line-height:1.5;letter-spacing:normal;text-align:start}
:where(.family-civil-page) :is(h1,h2,h3,h4,p,figure,dl){margin:0}
:where(.family-civil-page) :is(button,input,select,textarea){letter-spacing:inherit}
.family-civil-page button{cursor:pointer}
:where(.family-civil-page) a{color:inherit;text-decoration:none}
.family-civil-page .bk-subpage-hero{position:relative;background-size:cover;background-position:center;overflow:hidden}
.family-civil-page .bk-subpage-hero:after{display:none}
.family-civil-page .bk-subpage-breadcrumb ul[hidden],.family-civil-page [hidden]{display:none!important}
.family-civil-page .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.family-empty{text-align:center;padding:70px 20px;color:#94969d}

.family-civil-page .family-board-detail{width:calc(1440 / 1920 * 100vw);margin:0 auto;padding-bottom:calc(100 / 1920 * 100vw)}
.family-board-detail>.content_header{padding:0 0 calc(30 / 1920 * 100vw);border-bottom:1px solid #d8d9dc;margin-bottom:calc(60 / 1920 * 100vw)}
.family-board-detail>.content_header h2{font-size:calc(38 / 1920 * 100vw);line-height:1.4}
.family-board-detail>.content_header p{font-size:calc(14 / 1920 * 100vw);color:#94969d;margin-top:20px}
.family-board-detail>.rhymix_content{font-size:calc(20 / 1920 * 100vw);line-height:1.8}
.family-list-button{display:flex;width:calc(200 / 1920 * 100vw);height:calc(56 / 1920 * 100vw);align-items:center;justify-content:center;gap:30px;background:#172240;color:#fff!important;border-radius:999px;margin:calc(60 / 1920 * 100vw) auto 0;font-size:calc(18 / 1920 * 100vw)}
.family-civil-page .youtube-detail-content iframe{width:100%;aspect-ratio:16/9;height:auto;border:0}
.family-civil-page .case_board_text_box .rhymix_content>p:last-child{display:block!important}
.family-civil-page .about_intro_renewal__copy p{white-space:normal}
.family-civil-page .consulting-write-renewal__field textarea{width:100%;min-height:250px;border:1px solid #94969d;padding:20px}
.family-form-options{display:flex;gap:30px;margin-bottom:30px}
.family-form-options fieldset{border:0;padding:0;flex:1}
.family-form-options legend{margin-bottom:15px;font-weight:600}
.family-form-options label{display:inline-flex;align-items:center;gap:6px;margin:5px 12px 5px 0}
.family-form-options input{appearance:auto;width:auto;height:auto}
.family-civil-page .consulting-write-renewal__agreement{display:flex;justify-content:space-between;gap:15px;margin-top:30px}
.family-civil-page .consulting-write-renewal__actions{display:flex;justify-content:center;margin-top:50px}
.family-civil-page .consulting-write-renewal__actions button{border:0;border-radius:999px;background:#172240;color:#fff;padding:18px 65px}
.family-password,.family-image-dialog{position:fixed;inset:0;margin:auto;border:0;padding:30px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);background:#fff;z-index:3000}
.family-password::backdrop,.family-image-dialog::backdrop{background:#0009}
.family-password h2{margin:0 0 24px;font-size:22px}.family-password input{padding:12px;border:1px solid #94969d}.family-password form>div{display:flex;gap:10px;margin-top:20px}.family-password button{flex:1;padding:10px;background:#172240;color:white;border:0}
.family-image-dialog img{display:block;max-height:calc(100dvh - 110px);max-width:100%;object-fit:contain}.family-image-dialog button{display:block;margin:0 0 12px auto;border:0;background:#172240;color:#fff;padding:8px 14px}
@media(max-width:1024px){
.family-civil-page .bk-subpage-hero{background-image:var(--family-mobile-hero)!important}
.family-civil-page .family-board-detail{width:calc(350 / 390 * 100vw);padding:calc(40 / 390 * 100vw) 0 calc(60 / 390 * 100vw)}
.family-board-detail>.content_header{padding-bottom:24px;margin-bottom:30px}.family-board-detail>.content_header h2{font-size:calc(24 / 390 * 100vw)}.family-board-detail>.content_header p{font-size:12px}
.family-board-detail>.rhymix_content{font-size:calc(16 / 390 * 100vw)}
.family-list-button{width:180px;height:48px;font-size:16px;margin-top:40px}

.family-form-options{flex-direction:column;gap:20px}.family-civil-page .consulting-write-renewal__agreement{flex-direction:column;font-size:14px}
.family-civil-page .staff-exact__mobile-card{display:block;position:relative;margin-bottom:25px;overflow:hidden}.family-civil-page .staff-exact__mobile-card>img{display:block;width:100%;height:auto}.family-civil-page .staff-exact__mobile-card>div{display:flex;align-items:center;gap:8px;padding:15px;background:#f5f5f5}.family-civil-page .staff-exact__mobile-card strong{font-size:24px}.family-civil-page .staff-exact__mobile-card>div img{width:24px;margin-left:auto}
.family-civil-page .lawyer_renewal__success-list{overflow-x:auto!important}.family-civil-page .lawyer_renewal__success-track{display:flex}
}
.family-civil-page:is(.news,.youtube_board) .family-board-detail{width:100%;padding:0}
.family-civil-page .document_nav{list-style:none}
.family-civil-page .document_nav_content a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.family-civil-page .case_board_text_box .rhymix_content>p.case_box:last-child{display:flex!important}
.family-civil-page .bk-subpage-hero{--family-current-hero:var(--family-pc-hero)}
@media(max-width:1024px){.family-civil-page .bk-subpage-hero{--family-current-hero:var(--family-mobile-hero)}}
/* Match civil's six-pixel scrollbar geometry for component comparisons. */
body.bk-family-renewal::-webkit-scrollbar{width:6px}
/* Family requires four information fields rather than the civil form's two. */

.family-civil-page .consulting-write-renewal__section>.family-form-options,.family-civil-page .consulting-write-renewal__section>.consulting-write-renewal__field{grid-column:2}
.family-civil-page .consulting-write-renewal__section>.consulting-write-renewal__field{margin-bottom:28px}
/* Every record on a PHP page remains reachable on both viewport modes. */


.family-civil-page .bk-subpage-hero{background-color:#172240}
.family-civil-page :is(.success-renewal,.media-renewal,.youtube-renewal,.crime-faq-renewal,.consulting-renewal){font-size:15px;line-height:1.5}
.family-civil-page .civil-faq-question{color:#212121}
.family-civil-page .location-renewal__contacts{margin-top:0}
.family-civil-page .bk-pagination{text-align:center}
body:has(.family-civil-page) .family-page-top{display:none}
.family-civil-page .bk-subpage-top__link{cursor:pointer}
.family-civil-page.is-exact-profile .bk-subpage-hero__media{position:absolute;inset:0;width:100%;height:100%}
.family-civil-page.is-exact-profile .bk-subpage-hero__media img{display:block;width:100%;height:100%;object-fit:cover}
.family-civil-page .consulting-write-renewal__consult,.family-civil-page .consulting-write-renewal__consult .consulting-write-renewal__fields{height:auto;min-height:0}
.family-civil-page .consulting-write-renewal__editor textarea.rx_simpleeditor{display:block;box-sizing:border-box;width:100%;height:100%;resize:vertical;border:0;font:inherit;outline:none}
.family-civil-page .family-party-field ul{display:flex;gap:24px;list-style:none;padding:0;margin:0}
.family-civil-page .family-party-field li{display:flex;align-items:center;gap:8px}
.family-civil-page .family-party-field input{appearance:auto}
.family-civil-page .consulting-renewal__mobile-search{display:flex}
@media(min-width:1025px){.family-civil-page .consulting-write-renewal__form{font-size:16px;line-height:1.5}}
@media(max-width:1024px){.family-civil-page .consulting-write-renewal__form{font-size:12.8px;line-height:1.5}.family-civil-page .family-party-field ul{gap:12px}.family-civil-page .family-party-field .consulting-write-renewal__native-field{position:static;width:auto;height:auto;clip-path:none;overflow:visible}}
.family-civil-page .lawyer_renewal__success-list{overflow-x:auto;scrollbar-width:none}
.family-civil-page .lawyer_renewal__success-list::-webkit-scrollbar{display:none}
.family-civil-page .lawyer_img{display:flex;align-items:center;justify-content:center;background:#fff}
.family-civil-page .related_case_item{display:block}

/* Rhymix base typography and element resets required by the original components. */
:where(.family-civil-page) button{font:inherit;color:#212121;letter-spacing:normal}
.family-civil-page :is(.content_header_shop,.content_body,.family-board-detail){font-size:15px;line-height:1.5}
.family-civil-page.case_board .related_case_item{display:block;flex-direction:row;justify-content:normal;gap:normal}
.family-civil-page.case_board .related_case_title{display:flow-root;text-align:left;color:#000}
.family-civil-page.case_board .thum_more_btn{color:#fff;font-weight:600;font-size:17.5px}
.family-civil-page .consulting-renewal__pagination{text-align:start}
.family-civil-page .consulting-renewal__mobile-pagination .consulting-renewal__pagination{margin-top:0}
@media(max-width:1024px){
.family-civil-page{font-size:12.8px;line-height:1.5}
.family-civil-page.case_board .thum_more_btn{font-size:14px}
}

.family-civil-page :is(.media-renewal__list,.youtube-renewal__list,.success-renewal__list)>.bk-pagination{margin-bottom:0}

.family-civil-page.case_board .case_board_custom_body .related_case_item{display:block!important;flex-direction:row;justify-content:normal;gap:normal}
.family-civil-page .civil-field-detail__dynamic-content{width:100%}
.family-civil-page .civil-field-detail__tab{border:1px solid #94969d;border-radius:calc(10 / 1920 * var(--bk-subpage-pc-vw,100vw))}
.family-civil-page .civil-field-detail__success .lawyer_renewal__case{color:#000}
@media(max-width:1024px){.family-civil-page .civil-field-detail__tab{border-radius:calc(5 / 390 * 100vw)}}

.family-list-mode{display:contents}
@media(min-width:1025px){.family-list-mode--mobile{display:none}}
@media(max-width:1024px){.family-list-mode--pc{display:none}}

.family-civil-page .media_detail_title{display:block;width:100%}
.family-civil-page .document_nav_title{text-align:center}
.family-civil-page .bd_btn_wrap{font-size:0;line-height:0}
.family-civil-page .media_detail_zoom{font-size:16px;line-height:1.5}
@media(max-width:1024px){.family-civil-page .media_detail_zoom{font-size:12.8px}}

.family-civil-page.youtube_board .family-board-detail{font-family:Pretendard,"Noto Sans KR",sans-serif}
.family-civil-page [data-family-video]{cursor:pointer}
.family-civil-page .youtube-detail-thumbnail iframe{display:block;width:100%;height:100%;border:0}
.family-civil-page :is(.media-renewal__select,.youtube-renewal__select) select,
.family-civil-page :is(.media-renewal__keyword,.youtube-renewal__keyword) input,
.family-civil-page .consulting-write-renewal input{color:#212121}
.family-civil-page :is(.media-renewal__keyword,.youtube-renewal__keyword) button{padding:0;font-size:16px;line-height:1.5}
.family-civil-page .civil-faq-tabs>button{padding:0}
.family-civil-page .consulting-renewal__pagination>a{line-height:15px}
.family-civil-page .consulting-write-renewal__message-controls>input{line-height:1.5}
.family-civil-page .consulting-write-renewal__agree>input{font-size:16px;line-height:1.5}
.family-civil-page .civil-field-detail__intro>h1{display:block;width:100%}
@media(max-width:1024px){.family-civil-page :is(.media-renewal__keyword,.youtube-renewal__keyword) button{font-size:12.8px}}

.family-civil-page .detail_title{color:#616161}
.family-civil-page.news :is(.detail_title,.detail_content){font-size:14px;line-height:20px}
.family-civil-page.youtube_board .tool_wrap{margin-bottom:20px}
@media(max-width:1024px){.family-civil-page.news :is(.detail_title,.detail_content){font-size:13px;line-height:17px}}

.family-civil-page .family-consulting-detail .content_header{background:#fafafa;border-top:2px solid #616161;border-bottom:1px solid #e0e0e0;padding:25px 31px;margin:10px 0}
.family-civil-page .family-consulting-detail .content_header h1{display:block;color:#424242;font-size:22px;font-weight:600;line-height:1.3;margin-bottom:8px}
.family-civil-page .family-consulting-detail .detail{padding:0;margin:0;list-style:none}
.family-civil-page .family-consulting-detail .detail li{display:inline-block;font-size:14px;line-height:20px;padding-right:19px;color:#424242}
.family-civil-page .family-consulting-detail .content_body{padding:15px 10px}
@media(max-width:992px){.family-civil-page .family-consulting-detail .content_header{padding:18px 13px}.family-civil-page .family-consulting-detail .content_header h1{font-size:17px}.family-civil-page .family-consulting-detail .detail li{font-size:13px;line-height:17px}}

/* Header, drawer and footer intentionally inherit the family homepage shell. */
.family-civil-page .consulting-write-renewal__field>input,
.family-civil-page .consulting-write-renewal__native-field>input{color:#000}
.family-civil-page .consulting-renewal__mobile-pagination .consulting-renewal__pagination{margin-top:0!important}

@media(max-width:1024px){
.family-civil-page.staff .staff-exact .lawyer_mobile_renewal__card h2{height:auto;min-height:calc(70 / 390 * 100vw)}
.family-civil-page.staff .staff-exact .lawyer_mobile_renewal__card h2 span{white-space:normal}
.family-civil-page.staff .staff-exact .lawyer_mobile_renewal__credential{height:auto;min-height:calc(26 / 390 * 100vw);white-space:normal}
.family-civil-page.staff .staff-exact .lawyer_mobile_renewal__credential:last-child{height:auto;min-height:calc(41 / 390 * 100vw)}
}
.family-civil-page.staff .staff-exact .lawyer_renewal__headline-line.is-emphasis{white-space:normal}
.family-civil-page.staff .staff-exact .lawyer_mobile_renewal__card h2 .is-emphasis{font-weight:500}

.family-civil-page .family-image-dialog{padding:0;background:transparent;width:min(1200px,calc(100vw - 40px));height:calc(100dvh - 40px)}
.family-civil-page .family-image-dialog .bh_modal_content{box-sizing:border-box;position:relative;width:100%;height:100%;padding:52px 20px 20px;overflow:hidden;background:#fff}
.family-civil-page .family-image-dialog :is(.support_popup_inner,.thum_content){display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.family-civil-page .family-image-dialog .thum_content img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.family-civil-page .family-image-dialog .popup_close{box-sizing:border-box;position:absolute;top:10px;right:10px;display:flex;width:36px;height:36px;align-items:center;justify-content:center;margin:0;padding:0;border:0;border-radius:50%;background:#172240;color:#fff;font-size:24px;line-height:1}
