/* =======================================================
   VAULT-FORMS — 폼·버튼·검색 폼 (포쓰 3.5)
   - 부모 main.min.css 의 폼 계열 규칙을 실제로 렌더에 매칭되는 선택자만 남겨 이식
     (Woo·결제·외부 폼 플러그인·미사용 변형 선택자 제거, 선택자 추출: m35-extract.mjs)
   - 변수는 부모와 같은 --theme-* 이름 그대로(vault-base.css :root / global.css 공급). 이름 치환은 3.8.
   - 로드: 전 화면(푸터의 이메일 입력·버튼, 홈 검색·태그 위젯도 이 규칙에 의존) — functions.php
   - 이름 규칙: doc/plans/4th_css-naming.md / 설계: doc/plans/4th_base-css-3-5.md §8
======================================================= */

select,textarea,input:is([type=url],[type=tel],[type=text],[type=time],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=number],[type=search],[type=password]){font-family:var(--theme-form-font-family);font-size:var(--theme-form-font-size, 16px);font-weight:var(--theme-form-font-weight);font-style:var(--theme-form-font-style, inherit);line-height:var(--theme-form-line-height);letter-spacing:var(--theme-form-letter-spacing);text-transform:var(--theme-form-text-transform);-webkit-text-decoration:var(--theme-form-text-decoration);text-decoration:var(--theme-form-text-decoration)}
select,textarea,input:is([type=url],[type=tel],[type=text],[type=time],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=number],[type=search],[type=password]),.vault-find-form-inner{appearance:none;width:var(--has-width, var(--theme-form-field-width, 100%));height:var(--has-height, var(--theme-form-field-height, 40px));color:var(--theme-form-text-initial-color, var(--theme-text-color));padding:var(--has-classic-forms, var(--theme-form-field-padding, 0 15px));border-width:var(--theme-form-field-border-width, 1px);border-style:var(--theme-form-field-border-style, solid);border-color:var(--theme-form-field-border-initial-color);border-radius:var(--has-classic-forms, var(--theme-form-field-border-radius, 3px));background-color:var(--has-classic-forms, var(--theme-form-field-background-initial-color));transition:color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955),outline .12s cubic-bezier(0.455, 0.03, 0.515, 0.955),border-color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955),background-color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955);outline:max(2px,var(--theme-form-field-border-width, 1px)) solid rgba(0,0,0,0);outline-offset:calc(var(--theme-form-field-border-width, 1px)*-1)}
select:focus,textarea:focus,input:is([type=url],[type=tel],[type=text],[type=time],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=number],[type=search],[type=password]):focus,.vault-find-form-inner:focus{color:var(--theme-form-text-focus-color, var(--theme-text-color));outline-color:var(--theme-form-field-border-focus-color);border-color:var(--theme-form-field-border-focus-color);background-color:var(--has-classic-forms, var(--theme-form-field-background-focus-color))}
select::placeholder,textarea::placeholder,input:is([type=url],[type=tel],[type=text],[type=time],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=number],[type=search],[type=password])::placeholder,.vault-find-form-inner::placeholder{opacity:.7;color:inherit}
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
select{padding-inline-end:25px;background-image:url("data:image/svg+xml,%3Csvg width='21' height='13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5.379L20.621 2.5 10.5 12.621.379 2.5 2.5.379l8 8z' fill='%234F5D6D' fill-rule='nonzero'/%3E%3C/svg%3E");background-repeat:no-repeat,repeat;background-size:8px auto,100%;background-position:right 10px top 50%,0 0}
select option{color:initial}
textarea{line-height:1.5;resize:vertical;--theme-form-field-padding: 12px 15px}
.vault-find-form-inner :is(input,select){outline:none;border-width:0;border-radius:0;box-shadow:none;background-color:rgba(0,0,0,0)}
.vault-find-form-inner :is(input,select):focus{background-color:rgba(0,0,0,0)}
.vault-find-form-inner:has(:is(input,select):focus){outline-color:var(--theme-form-field-border-focus-color);border-color:var(--theme-form-field-border-focus-color);background-color:var(--has-classic-forms, var(--theme-form-field-background-focus-color))}
.comment-form input[type=checkbox]{display:inline-block;vertical-align:baseline;position:relative;top:var(--top, 3px);min-width:16px;width:16px;height:16px;min-height:initial;padding:0 !important;margin:0;margin-inline-end:.7em;border-width:var(--form-selection-control-border-width, var(--theme-form-field-border-width, 1px));border-style:solid;cursor:pointer;-webkit-appearance:none;background:rgba(0,0,0,0);border-color:var(--theme-form-selection-field-initial-color)}
.comment-form input[type=checkbox]:before{position:absolute;content:"";z-index:2;inset:0;opacity:0;margin:auto}
.comment-form input[type=checkbox]:checked{border-color:var(--theme-form-selection-field-active-color);background:var(--theme-form-selection-field-active-color)}
.comment-form input[type=checkbox]:checked:before{opacity:1}
.comment-form input[type=checkbox]:focus{outline:none}
.comment-form input[type=checkbox]:focus-visible{outline:2px solid var(--theme-palette-color-1);outline-offset:var(--outline-offset, 2px)}
.comment-form input[type=checkbox]{border-radius:var(--theme-form-checkbox-border-radius, 3px)}
.comment-form input[type=checkbox]:before{top:-2px;width:8px;height:5px;border:2px solid #fff;border-top:none;border-inline-end:none;transform:rotate(-45deg)}
label{font-size:15px;line-height:inherit;cursor:pointer;margin:0 0 .5em 0}
:is(.gdpr-confirm-policy,.comment-form-cookies-consent) label{font-size:13px}
[type=submit],.wp-element-button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--theme-button-min-height);padding:var(--theme-button-padding);border:none;appearance:none;cursor:pointer;-webkit-user-select:none;user-select:none;text-align:center;border-radius:var(--theme-button-border-radius, 3px);transition:all .12s cubic-bezier(0.455, 0.03, 0.515, 0.955);--has-link-decoration: var(--false)}
[type=submit]:disabled,.wp-element-button:disabled{opacity:.5;cursor:not-allowed;--theme-button-shadow: none;--theme-button-transform: none}
@media(max-width: 479.98px){[type=submit],.wp-element-button{--padding: 5px 15px}}
.entry-tags a,[type=submit],.wp-element-button{position:relative;color:var(--theme-button-text-initial-color);border:var(--theme-button-border);background-color:var(--theme-button-background-initial-color)}
.entry-tags a:hover,[type=submit]:hover,.wp-element-button:hover{color:var(--theme-button-text-hover-color);border-color:var(--theme-button-border-hover-color);background-color:var(--theme-button-background-hover-color)}
@media(hover: hover){@supports(filter: blur()){.entry-tags a:before,[type=submit]:before,.wp-element-button:before{display:var(--theme-button-shadow, block);position:absolute;z-index:-1;content:"";inset-inline:10px;inset-block:12px 0;opacity:0;border-radius:inherit;background:inherit;transition:opacity .2s ease;filter:blur(11px)}@media(hover: hover)and (prefers-reduced-motion: no-preference){.entry-tags a:hover,[type=submit]:hover,.wp-element-button:hover{transform:var(--theme-button-transform, translate3d(0, -3px, 0))}.entry-tags a:hover:before,[type=submit]:hover:before,.wp-element-button:hover:before{opacity:.8}}}}
[type=submit],.wp-element-button{font-family:var(--theme-button-font-family, var(--theme-font-family));font-size:var(--theme-button-font-size);font-weight:var(--theme-button-font-weight);font-style:var(--theme-button-font-style);line-height:var(--theme-button-line-height);letter-spacing:var(--theme-button-letter-spacing);text-transform:var(--theme-button-text-transform);-webkit-text-decoration:var(--theme-button-text-decoration);text-decoration:var(--theme-button-text-decoration)}

/* ---------- 검색 폼 (vault-find-form): 결과 없음 화면 / 부모 .ct-search-form 규칙 합침 ----------
   부모의 data-form-controls·data-submit-button(icon·minimal) 속성 선택자 규칙은 현재 마크업이 모두 만족하므로 한 규칙으로 합쳤다. */
.vault-find-form {
    position: relative;
    isolation: isolate;
    --theme-link-initial-color: var(--theme-text-color);
}

.vault-find-form .vault-find-form-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-inline: 0;
}

.vault-find-form .wp-element-button {
    --theme-button-padding: 5px 20px;
    --theme-button-border-radius: var(--theme-form-field-border-radius, 3px);
    --theme-icon-color: currentColor;
    --outline-offset: 0px;
    --theme-icon-size: 13px;
    --theme-button-min-height: 100%;
    --theme-button-shadow: none;
    --theme-button-transform: none;
    --theme-button-text-initial-color: var(--theme-text-color);
    --theme-button-text-hover-color: var(--theme-form-field-border-focus-color);
    --theme-button-background-initial-color: transparent;
    --theme-button-background-hover-color: transparent;
    flex-shrink: 0;
    border: none;
    padding: initial;
    aspect-ratio: 1 / 1;
}
