/*
 * SMALL_TABLET_LAYOUT_V1_BEGIN
 *
 * Small-tablet refinements for pages that already own a complete mobile
 * layout. Every selector requires all three boundaries:
 *   1) layout-mobile
 *   2) device-small-tablet
 *   3) an explicit data-layout-page value
 *
 * Desktop, large-tablet, and industrial geometry must never be declared here.
 */

/* Index tablet appearance is shared across orientations in tablet.css. */

html.layout-mobile.device-small-tablet[data-layout-page="login"] {
  --login-mobile-edge-gap: clamp(20px, 3.2vw, 28px);
  --login-mobile-card-width: min(100%, 560px);
  --login-mobile-card-radius: 22px;
  --login-mobile-card-min-height: clamp(560px, calc(72 * var(--mobile-vh, 1vh)), 680px);
}

html.layout-mobile.device-small-tablet[data-layout-page="login"] body.layout-mobile .header h1 {
  font-size: clamp(30px, 4.6vw, 36px);
}

html.layout-mobile.device-small-tablet[data-layout-page="login"] body.layout-mobile .login-form {
  width: min(calc(100% - 64px), 440px);
}

html.layout-mobile.device-small-tablet[data-layout-page="agents"] {
  --agent-mobile-edge-gap: clamp(14px, 2.2vw, 18px);
  --agent-mobile-title-size: clamp(26px, 4.2vw, 32px);
  --agent-mobile-card-gap: clamp(12px, 2vw, 16px);
  --agent-mobile-role-font: clamp(11px, 1.8vw, 13px);
  --agent-mobile-title-font: clamp(14px, 2.2vw, 17px);
  --agent-mobile-desc-font: clamp(12px, 1.8vw, 14px);
}

html.layout-mobile.device-small-tablet[data-layout-page="agents"] #agentSelectionContent {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
  padding-top: clamp(38px, 5.4vh, 58px);
  padding-top: clamp(38px, 5.4dvh, 58px);
}

html.layout-mobile.device-small-tablet[data-layout-page="agents"] #agentSelectionSubtitle {
  font-size: clamp(14px, 2.2vw, 16px);
}

html.layout-mobile.device-small-tablet[data-layout-page="agents"] .agent-mobile-page .agent-card-button .talk-button {
  min-height: 40px;
  font-size: 13px;
}

html.layout-mobile.device-small-tablet[data-layout-page="identity-completion"] body.layout-mobile .completion-page {
  padding: max(22px, env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
}

html.layout-mobile.device-small-tablet[data-layout-page="identity-completion"] body.layout-mobile .completion-shell {
  width: min(100%, 640px);
}

html.layout-mobile.device-small-tablet[data-layout-page="identity-completion"] body.layout-mobile .completion-topbar {
  padding: 20px;
}

html.layout-mobile.device-small-tablet[data-layout-page="identity-completion"] body.layout-mobile .completion-main {
  padding: 26px 24px 124px;
}

html.layout-mobile.device-small-tablet[data-layout-page="identity-completion"] body.layout-mobile .completion-header h2 {
  font-size: 28px;
}

html.layout-mobile.device-small-tablet[data-layout-page="identity-completion"] body.layout-mobile .completion-actions {
  width: min(640px, calc(100% - 44px));
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
}

/* SMALL_TABLET_LAYOUT_V1_END */
