/* shared — single ownership; responsive overrides remain with their component. */
.eyebrow {
  font-size:12px;
  letter-spacing:.04em;
}

.button {
  min-height:52px;
  border:1px solid var(--ink);
  background:var(--accent);
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  font-size:14px;
  font-weight:500;
}

.button > span:last-child {
  font-size:18px;
}

.controls {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}

.controls>span {
  margin-right:8px;
  min-width:48px;
}

.controls button {
  border:1px solid var(--ink);
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
}

.content-media {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  inset:0;
}

.content-fx {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  pointer-events:none;
  overflow:hidden;
}

.content-media[hidden] {
  display:none;
}

.has-media {
  background-image:none!important;
}

.has-media>#menu-featured-placeholder {
  display:none;
}


/* Native selects retain keyboard/mobile pickers; the closed control uses one visual rule. */
:is(.screen, .auth-page) main select {
  appearance:none;
  min-height:44px;
  max-width:100%;
  padding:10px 40px 10px 16px;
  border:1px solid var(--ink);
  border-radius:0;
  background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23090909' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color:var(--ink);
  font:400 14px/1.5 Pretendard,sans-serif;
  cursor:pointer;
}
:is(.screen, .auth-page) main select:hover { border-color:#737373; }
:is(.screen, .auth-page) main select:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
:is(.screen, .auth-page) main select:disabled { opacity:.45; cursor:not-allowed; }
.button > span:not(:last-child) { font-size:inherit; }
.button:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }

/* Shared notice dialog: informational by default; data-tone="error" for failures. */
.notice-dialog {
  width:min(440px,calc(100vw - 32px));
  max-height:calc(100dvh - 48px);
  margin:auto;
  padding:32px;
  overflow:auto;
  border:1px solid var(--ink);
  border-radius:0;
  background:var(--paper);
  color:var(--ink);
}
.notice-dialog::backdrop { background:rgb(0 0 0 / .4); }
.notice-dialog h2 { font-size:24px; font-weight:500; line-height:1.4; letter-spacing:-.03em; }
.notice-dialog > p { margin:24px 0; font-size:14px; line-height:1.7; white-space:pre-line; overflow-wrap:anywhere; }
.notice-dialog > form { display:flex; justify-content:flex-end; margin-top:24px; padding-top:24px; border-top:1px solid #dedede; }
.notice-dialog .button { min-width:120px; }
.notice-dialog[data-tone="error"] { border-top:3px solid #b42318; }
.notice-dialog[data-tone="error"] h2 { color:#b42318; }
.notice-dialog .search-head { margin-bottom:24px; }
@media(max-width:760px) { .notice-dialog { padding:24px; } }

/* Kakao is a shared branded action. Keep its yellow in every interaction state. */
.button.button--kakao {
  background:#fee500;
  border-color:#fee500;
  color:#191919;
}
.button.button--kakao:not(:disabled):is(:hover,:focus-visible) {
  background:#fee500;
  border-color:#fee500;
  color:#191919;
}
.button--kakao .kakao-mark {
  width:22px;
  height:22px;
  flex:0 0 22px;
}
.button--kakao > span:not(:last-child) {
  flex:1;
}

/* Inline search action shared by the hospital overlay and signup form. */
.search-submit {
  border:0;
  background:none;
  color:var(--ink);
  font-size:14px;
  font-weight:500;
}
.search-submit:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}
.search-submit:focus-visible {
  outline:2px solid var(--ink);
  outline-offset:3px;
}

/* Underline fields: service application, component template and authentication. */
.field {
  display:block;
  padding:24px 0 12px;
  border-bottom:1px solid var(--ink);
}

.field-label {
  display:block;
  font-size:12px;
  color:#8a8a8a;
  margin-bottom:12px;
}

.field input,
.field textarea {
  width:100%;
  border:0;
  background:none;
  font-size:17px;
  line-height:1.6;
  padding:0;
  resize:none;
}

.field input:focus,
.field textarea:focus {
  outline:none;
}

.field:focus-within {
  border-bottom-width:2px;
  padding-bottom:11px;
}

.field:has([aria-invalid="true"]) { border-color:#b42318; }
.field [aria-invalid="true"] { color:#b42318; }
