/* SHARETEL readability layer — 공개 홈·서비스 페이지 전용 (2026-10-21). 앱 쪽 규칙은 sharetel-app.css 로 옮겼다. */
/* --read-* 변수는 sharetel-variables.css 에 있다. */
.st-home-shell :is(button, a, input, select, textarea):focus-visible,
.st-registration-dialog :is(button, a, input, select, textarea):focus-visible,
.st-calculator-dialog :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--read-focus);
  outline-offset: 3px;
}
/* Public home: clearer utility, login labels and application help. */
.st-home-shell,
.st-registration-dialog,
.st-calculator-dialog {
  --st-muted: var(--read-muted);
  font-size: var(--read-body);
  line-height: 1.6;
}
.st-home-shell[data-featured-role="operator"] {
  grid-template-rows: auto auto;
}
.st-home-shell .st-utility-actions {
  gap: 16px;
  flex-wrap: wrap;
}
.st-home-shell .st-utility-actions :is(a, button) {
  min-height: var(--read-control);
  font-size: var(--read-secondary);
  line-height: 1.5;
}
.st-home-shell .st-utility-bar {
  min-height: 64px;
  height: auto;
  gap: 16px;
  padding-block: 10px;
}
.st-home-shell .st-facility-entry p,
.st-home-shell .st-facility-entry-actions a,
.st-home-shell .st-facility-entry-actions button {
  font-size: var(--read-secondary);
  line-height: 1.65;
}
.st-home-shell .st-facility-entry-actions {
  flex-wrap: wrap;
}
.st-registration-dialog :is(label, legend, .st-registration-privacy,
  .st-registration-policy-links, .st-registration-message),
.st-calculator-dialog :is(label, .st-calculator-disclaimer) {
  font-size: var(--read-secondary);
  line-height: 1.65;
  word-break: keep-all;
}
.st-registration-dialog :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.st-calculator-dialog :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  min-width: 0;
  max-width: 100%;
  min-height: var(--read-control);
  font-size: var(--read-body);
  line-height: 1.5;
}
.st-registration-dialog :is(button, .st-registration-consent),
.st-calculator-dialog button {
  min-height: var(--read-control);
  font-size: var(--read-secondary);
  line-height: 1.5;
}
/* Home login has legacy !important type sizes. Limit the override to text only. */
.st-home-shell .st-login-inline .st-login-card-head p,
.st-home-shell .st-login-inline .st-login-card > label > b,
.st-home-shell .st-login-inline .st-login-options label,
.st-home-shell .st-login-inline .st-login-sub-actions button,
.st-home-shell .st-login-inline .st-login-role-tabs button,
.st-home-shell .st-login-inline .st-login-message {
  font-size: var(--read-secondary) !important;
  line-height: 1.6 !important;
}
.st-home-shell .st-login-inline .st-login-card > label > b {
  text-align: left;
}
.st-home-shell .st-login-inline .st-login-options {
  flex-wrap: wrap;
  gap: 8px 20px;
}
.st-home-shell .st-login-inline .st-login-options label {
  white-space: normal;
}
.st-home-shell .st-login-inline .st-login-sub-actions button {
  min-height: var(--read-control);
}
.st-footer .st-business-info p,
.st-footer .st-business-info strong,
.st-footer .st-footer-links a {
  font-size: var(--read-secondary) !important;
  line-height: 1.65 !important;
}
.st-footer .st-footer-links a {
  min-height: var(--read-control) !important;
}

/* Public service has its own layout. Use the same readable service palette. */
body:has(> .service-header) {
  --deep: var(--read-forest);
  --accent: #145f57;
  --muted: var(--read-muted);
  color: var(--read-ink);
  background: var(--read-paper);
  font-size: var(--read-body);
  line-height: 1.6;
}
.service-header,
.service-footer {
  gap: 20px;
  flex-wrap: wrap;
}
.service-header nav,
.service-footer nav {
  flex-wrap: wrap;
  gap: 8px 20px;
}
.service-header nav a,
.service-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--read-control);
  font-size: var(--read-secondary);
  line-height: 1.5;
}
#serviceMain :is(.intro-photo figcaption, .audience-label, .audience-note,
  .check-points li, .share-principles > div, .link-note, .eyebrow,
  .sample-label, .screen-disclosure, .screen-frame figcaption > span,
  .screen-note, .service-apply p:not(.eyebrow)) {
  font-size: var(--read-secondary);
  line-height: 1.7;
}
#serviceMain :is(.audience-answer > p, .feature-list p, .service-guidance dd) {
  font-size: var(--read-body);
  line-height: 1.8;
}
#serviceMain :is(.button, .text-link, .screen-tabs button, .audience-nav a) {
  font-size: 15px;
  line-height: 1.6;
  min-height: var(--read-control);
}
#serviceMain .button:hover,
.service-header .button:hover,
#serviceMain .service-apply .button {
  background: var(--read-forest);
  border-color: var(--read-forest);
  color: #fff;
}
#serviceMain .service-apply .button {
  border-color: #fff;
}
#serviceMain .service-apply .button:hover {
  background: var(--read-paper);
  border-color: var(--read-paper);
  color: var(--read-forest);
}
#serviceMain .audience-label span {
  background: #dceae4;
  color: var(--read-forest);
}
.service-footer {
  font-size: var(--read-secondary);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .st-home-shell .st-utility-bar {
    gap: 8px 16px;
    flex-wrap: wrap;
  }
  .st-home-shell .st-utility-actions {
    gap: 8px 14px;
  }
  .st-home-shell > .st-facility-entry {
    align-items: stretch;
  }
  .service-header {
    padding-block: 14px;
  }
  .service-header nav {
    gap: 8px 14px;
  }
}

@media (max-width: 1020px) and (min-width: 641px) {
  .st-home-shell[data-featured-role="operator"] {
    grid-template-rows: auto auto auto;
  }
}

@media (max-width: 640px) {
  /* A wrapped utility bar must not overlap the first login row. */
  .st-home-shell[data-featured-role="operator"] {
    grid-template-rows: auto auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-home-shell,
  #serviceMain {
    scroll-behavior: auto;
  }
}
